]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
c-pretty-print.h (c_pretty_printer::primary_expression): Now a virtua member function.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
7ecc2600
GDR
12013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2
3 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4 virtua member function.
5 (pp_primary_expression): Adjust.
6 (pp_c_primary_expression): Remove.
7 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
8 from pp_c_primary_expression. Adjust.
9 (pp_c_initializer_list): Use pp_primary_expression.
10 (c_pretty_printer::c_pretty_printer): Do not assign to
11 primary_expression.
12
0691175f
GDR
132013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
14
15 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
16 * c-pretty-print.c (M_): Remove.
17 (c_pretty_printer::translate_string): Define.
18 (pp_c_type_specifier): Use it.
19 (pp_c_primary_expression): Likewise.
20 (pp_c_expression): Likewise.
21
66dfe4c4
GDR
222013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
23
24 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
25 virtual function.
26 (pp_c_id_expression): Remove.
27 (pp_id_expression): Adjust.
28 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
29 pp_c_id_expression. Adjust.
30 (pp_c_postfix_expression): Use pp_id_expression.
31 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
32
ca43e9d5
GDR
332013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
34
35 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
36 member function.
37 (pp_constant): Adjust.
38 (pp_c_constant): Remove.
39 * c-pretty-print.c (c_pretty_printer::constant): Rename from
40 pp_c_constant. Adjust.
41 (pp_c_constant)
42 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
43 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
44
da6ca2b5
GDR
452013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
46
47 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
48 (c_pretty_printer::c_pretty_printer): Declare.
49 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
50 c_pretty_printer_init. Adjust.
51 (print_c_tree): Do not call c_pretty_printer_init.
52 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
53
65a372f4
AC
542013-08-09 Arnaud Charlet <charlet@adacore.com>
55
56 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
57
fd9b0f32
PC
582013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
59
60 PR c++/58080
61 * c-common.c (pointer_int_sum): Add bool parameter.
62 * c-common.h (pointer_int_sum): Adjust declaration.
63
e0aec1e9
GDR
642013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
65
66 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
67 c_pretty_printer variable.
68
b066401f
GDR
692013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
70
71 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
72 (pp_base): Remove.
73 (pp_c_base): Likewise. Adjust users.
74 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
75 (pp_c_whitespace): Do not call pp_base.
76 (pp_c_left_paren): Likewise.
77 (pp_c_right_paren): Likewise.
78 (pp_c_left_brace): Likewise.
79 (pp_c_right_brace): Likewise.
80 (pp_c_left_bracket): Likewise.
81 (pp_c_right_bracket): Likewise.
82 (pp_c_dot): Likewise.
83 (pp_c_ampersand): Likewise.
84 (pp_c_star): Likewise.
85 (pp_c_arrow): Likewise.
86 (pp_c_semicolon): Likewise.
87 (pp_c_complement): Likewise.
88 (pp_c_exclamation): Likewise.
89 (pp_c_direct_declarator): Likewise.
90 (pp_c_ws_string): Likewise.
91 (pp_c_identifier): Likewise.
92 (pp_c_statement): Likewise.
93 (print_c_tree): Likewise.
94
65e5a578
ESR
952013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
96
97 PR c++/58072
98 * c-common.c (c_parse_error): Catch user-defined literal tokens and
99 provide useful error strings.
100
137a1a27
GDR
1012013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
102
103 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
104 printer functions instead of pp_string or operators and punctuators.
105 (dump_generic_ada_node): Likewise.
106 * c-pretty-print.c (pp_c_type_specifier): Likewise.
107 (pp_c_relational_expression): Likewise.
108 (pp_c_logical_or_expression): Likewise.
109
07838b13
GDR
1102013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
111
112 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
113 functions instead of pp_character.
114 (pp_ada_tree_identifier): Likewise.
115 (dump_ada_double_name): Likewise.
116 (dump_ada_function_declaration): Likewise.
117 (dump_ada_array_domains): Likewise.
118 (dump_template_types): Likewise.
119 (dump_generic_ada_node): Likewise.
120 (print_ada_declaration): Likewise.
121 (print_ada_struct_decl): Likewise.
122 * c-pretty-print.c (pp_c_integer_constant): Likewise.
123
433cc7b0
TT
1242013-07-23 Tom Tromey <tromey@redhat.com>
125
126 * c-common.h (enum rid) <RID_GENERIC>: New constant.
127 * c-common.c (c_common_reswords): Add _Generic.
128
688010ba
OB
1292013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
130
131 * c-common.c: Fix typos.
132 * c-common.h: Likewise.
133
2a99e5e6
LL
1342013-07-13 Lubos Lunak <l.lunak@suse.cz>
135
136 PR c++/55203
137 * c-common.c (c_common_attribute_table): Add warn_unused.
138 (handle_warn_unused_attribute): New.
139
c26302d5
JJ
1402013-07-10 Jakub Jelinek <jakub@redhat.com>
141
142 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
143 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
144
dfeadaa0
PC
1452013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
146
147 PR c++/57869
148 * c.opt: Add Wconditionally-supported.
149
6a2fa4b2
GS
1502013-07-08 Graham Stott <graham.stott@btinternet.com>
151
152 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
153 unused variables l_length and l_node.
154
40d3d530
JR
1552013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
156
157 PR c/57821
158 * c-common.c (complete_array_type): Delay folding first index
159 like other indices. When folding, check for index overflow.
160
bedc293e
MG
1612013-06-27 Marc Glisse <marc.glisse@inria.fr>
162
163 PR c++/57509
164 * c-common.h (c_build_vec_perm_expr): New complain argument.
165 * c-common.c (c_build_vec_perm_expr): Likewise.
166 Use save_expr also in C++.
167
604b2bfc
GDR
1682013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
169
170 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
171 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
172 * c-opts.c (c_common_post_options): Likewise.
173
dfeadaa0 1742013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
175
176 * array-notation-common.c (length_mismatch_in_expr): Changed the
177 parameter type's from a dynamic array to a vec_tree. Also removed
178 the size parameters.
179 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
180 the change above.
181
2ce86d2e
BI
1822013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
183
184 * c-common.h (struct cilkplus_an_parts): New structure.
185 (struct cilkplus_an_loop_parts): Likewise.
186 (cilkplus_extract_an_triplets): New prototype.
187 (fix_sec_implicit_args): Likewise.
188 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
189 (fix_sec_implicit_args): Likewise.
604b2bfc 190
07a6825b
BI
1912013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
192
193 * array-notation-common.c (find_inv_trees): Removed an unwanted
194 typecasting.
195 * c-common.h (struct inv_list::additional_tcodes): Changed type from
196 enum rid to enum tree_code.
197
08346abd
JH
1982013-06-11 Jan Hubicka <jh@suse.cz>
199
200 * c-common.c (handle_alias_ifunc_attribute): Do not set
201 DECL_EXTERNAL for weakref variables.
202 * c-pragma.c (handle_pragma_weak): Make sure aliases
203 are not declared as external.
204
d60f1706
BI
2052013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
206
207 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
208 function from c/c-array-notation.c.
209 (is_cilkplus_reduce_builtin): Likewise.
210 (find_rank): Likewise.
211 (extract_array_notation_exprs): Likewise.
212 (replace_array_notations): Likewise.
213 (find_inv_trees): Likewise.
214 (replace_inv_trees): Likewise.
215 (contains_array_notation_expr): Likewise.
216 (find_correct_array_notation_type): Likewise.
217 * c-common.h (struct inv_list): Moved this struct from the file
218 c/c-array-notation.c and added a new field called additional tcodes.
219 (length_mismatch_in_expr_p): New prototype.
220 (is_cilkplus_reduce_builtin): Likewise.
221 (find_rank): Likewise.
222 (extract_array_notation_exprs): Likewise.
223 (replace_array_notation): Likewise.
224 (find_inv_trees): Likewise.
225 (replace_inv_trees): Likewise.
226 (find_correct_array_notation_type): Likewise.
dfeadaa0 227
36536d79
BI
2282013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
229
230 * c-common.c (c_define_builtins): When cilkplus is enabled, the
231 function array_notation_init_builtins is called.
232 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
233 * c-common.def (ARRAY_NOTATION_REF): New tree.
234 * c-common.h (build_array_notation_expr): New function declaration.
235 (build_array_notation_ref): Likewise.
236 (extract_sec_implicit_index_arg): New extern declaration.
237 (is_sec_implicit_index_fn): Likewise.
238 (ARRAY_NOTATION_CHECK): New define.
239 (ARRAY_NOTATION_ARRAY): Likewise.
240 (ARRAY_NOTATION_START): Likewise.
241 (ARRAY_NOTATION_LENGTH): Likewise.
242 (ARRAY_NOTATION_STRIDE): Likewise.
243 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
244 ARRAY_NOTATION_REF.
245 (pp_c_expression): Likewise.
246 * c.opt (flag_enable_cilkplus): New flag.
247 * array-notation-common.c: New file.
248
f7716d57
JJ
2492013-05-14 Jakub Jelinek <jakub@redhat.com>
250
251 PR c++/57274
252 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
253
a5e0cd1d
MG
2542013-05-10 Marc Glisse <marc.glisse@inria.fr>
255
256 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
257 vectors.
258
f6bc1c4a
HS
2592013-05-07 Han Shen <shenhan@google.com>
260
261 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
262
3f12f6e9
SKS
2632013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
264
265 * c-common.c (check_user_alignment): Emit error for negative values.
266
61949153
PC
2672013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
268
269 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
270
e93e18e9
PC
2712013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
272
273 * c-cppbuiltin.c (c_cpp_builtins): Do not define
274 __GXX_EXPERIMENTAL_CXX1Y__.
275
44d90fe1
PC
2762013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
277 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
278
279 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
280 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
281 to simply use OPT_Wpointer_arith.
282 (c_sizeof_or_alignof_type): Likewise.
283
13f39b2e
PC
2842013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
285
286 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
287
4b84d650
JJ
2882013-04-12 Jakub Jelinek <jakub@redhat.com>
289
290 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
291 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
292 specifiers.
293
fb037b5d
SB
2942013-04-07 Steven Bosscher <steven@gcc.gnu.org>
295
296 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
297
4e856798
PC
2982013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
299
300 * c-common.c (pointer_int_sum): Remove dead code.
301
4b1baac8
RS
3022013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
303
304 PR middle-end/56524
305 * c-common.c (handle_optimize_attribute): Don't call
306 save_optabs_if_changed.
307
0b50e654
JJ
3082013-03-05 Jakub Jelinek <jakub@redhat.com>
309
310 PR middle-end/56461
311 * c-pch.c (pch_init): Free target_validity at the end.
312
48c41403
JJ
3132013-03-04 Jakub Jelinek <jakub@redhat.com>
314
315 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
316
e664c61c
KS
3172013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
318 Jakub Jelinek <jakub@redhat.com>
319
320 PR sanitizer/56454
321 * c-common.c (handle_no_sanitize_address_attribute): New function.
322 (c_common_attribute_table): Add no_sanitize_address attribute.
323 (handle_no_address_safety_analysis_attribute): Add
324 no_sanitize_address attribute, not no_address_safety_analysis
325 attribute.
326
a475fd3d 3272013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
328
329 PR target/52555
330 * c-common.c (handle_optimize_attribute): Call
331 save_optabs_if_changed.
332
f6007d99
JJ
3332013-02-18 Jakub Jelinek <jakub@redhat.com>
334 Steven Bosscher <steven@gcc.gnu.org>
335
336 PR pch/54117
337 * c-opts.c (c_common_post_options): If debug info is enabled
338 and non-dwarf*, refuse to load PCH files and when writing PCH
339 file warn.
340
cf35e2b1
JJ
3412013-02-05 Jakub Jelinek <jakub@redhat.com>
342
343 PR middle-end/56167
344 * c-common.c (handle_error_attribute): Fix condition.
345
32887460
JJ
3462013-01-30 Jakub Jelinek <jakub@redhat.com>
347
348 PR c++/55742
349 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
350
5af057d8
JM
3512013-01-18 Jason Merrill <jason@redhat.com>
352
353 PR target/54908
354 * c.opt (-fextern-tls-init): New.
355 * c-opts.c (c_common_post_options): Handle it.
356
cc83c823
JJ
3572013-01-09 Jakub Jelinek <jakub@redhat.com>
358
359 PR c/48418
360 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
361 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
362 and is either negative or bigger or equal to type precision
363 of the first operand.
364
a859517f
MP
3652012-12-03 Marek Polacek <polacek@redhat.com>
366
367 PR c/55570
368 * c-common.c (check_user_alignment): Swap order of tests,
369 check TREE_CODE first.
370
2d7aa578
ESR
3712012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
372
373 PR c++/52654
374 * c-common.h (overflow_type): New enum.
375 (build_userdef_literal): Add overflow_type argument.
376 (tree_userdef_literal): Add overflow_type.
377 (USERDEF_LITERAL_OVERFLOW): New access macro.
378 * c-common.c (build_userdef_literal): Add overflow_type
379 argument.
380 * c-lex.c (c_lex_with_flags): Add overflow_type to
381 build_userdef_literal calls.
382 (interpret_integer, interpret_float): Add overflow_type argument.
383
cc3c4f62
RB
3842012-11-28 Richard Biener <rguenther@suse.de>
385
386 PR c/35634
387 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
388 here and use a type with proper overflow behavior for types that would
389 need to be promoted for the arithmetic.
390
77bc5132
JJ
3912012-11-23 Jakub Jelinek <jakub@redhat.com>
392
393 PR sanitizer/55435
394 * c-common.c (handle_no_address_safety_analysis_attribute): New
395 function.
396 (c_common_attribute_table): Add no_address_safety_analysis.
397
5dc99c46
SB
3982012-11-16 Simon Baldwin <simonb@google.com>
399
400 * c.opt: Add f[no-]canonical-system-headers.
401 * c-opts.c (c_common_handle_option): Handle
402 OPT_fcanonical_system_headers.
403
a4a0016d
ESR
4042012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
405
406 PR c++/54413
407 * c-opts.c (c_common_handle_option): Set new flags.
408 * c.opt: Describe new flags.
409
7dbb85a7
JM
4102012-11-09 Jason Merrill <jason@redhat.com>
411
412 * c.opt (Wabi-tag): New.
413
ad7bac31
AK
4142012-11-09 Andi Kleen <ak@linux.intel.com>
415
416 PR 55139
417 * c-common.c (get_atomic_generic_size): Mask with
418 MEMMODEL_MASK
419
7332899a
MLI
4202012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
421
422 PR c/53063
423 * c.opt (Wformat): Make it Alias Wformat=1.
424 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
425 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
426 LangEnabledBy.
427 (Wformat=): RejectNegative. Use LangEnabledBy.
428 (Wnonnull): Use LangEnabledBy.
429 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
430 * c-format.c (set_Wformat): Delete.
431 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
432 (maybe_read_dollar_number): Likewise.
433 (avoid_dollar_number): Likewise.
434 (finish_dollar_format_checking): Likewise.
435 (check_format_info): Likewise.
436 (check_format_info_main): Likewise.
437 (check_format_types): Likewise.
438 (format_type_warning): Likewise.
439 * c-common.c (int): Likewise.
440 (check_function_sentinel): Likewise.
441 * c-common.h (warn_format,set_Wformat): Do not declare here.
442
34a180a6
MLI
4432012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
444
445 PR c/53063
446 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
447 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
448 Use LangEnabledBy.
449 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
450 common.opt.
451 (Wvariadic-macros): Init(1).
452 * c-opts.c (c_common_handle_option): Do not handle them
453 explicitly.
454 (c_common_post_options): Likewise.
455 (sanitize_cpp_opts): warn_unused_macros is now
456 cpp_warn_unused_macros.
457 (push_command_line_include): Likewise.
458 * c-common.c (warn_unknown_pragmas): Do not define.
459 * c-common.h (warn_unknown_pragmas): Do not declare.
460
3f46d6a5
MLI
4612012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
462
463 PR c/51294
464 * c-common.c (conversion_warning): Handle conditional expressions.
465
880661a4
JW
4662012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
467
468 PR c++/54930
469 * c.opt (Wreturn_local_addr): Define new option.
470
4514a96b
JM
4712012-10-25 Jason Merrill <jason@redhat.com>
472
f14edc1a
JM
473 * c.opt (Wvirtual-move-assign): New.
474
4514a96b
JM
475 * c.opt (Winherited-variadic-ctor): New.
476
93100c6b
MG
4772012-10-25 Marc Glisse <marc.glisse@inria.fr>
478
479 PR c++/54427
480 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
481
1efcb8c6
JM
4822012-10-23 Joseph Myers <joseph@codesourcery.com>
483
484 * c-common.h (pch_cpp_save_state): Declare.
485 * c-target.def (c_preinclude): New hook.
486 * c-opts.c (done_preinclude): New.
487 (push_command_line_include): Handle default preincluded header.
488 (cb_file_change): Call pch_cpp_save_state when calling
489 push_command_line_include.
490 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
491 (pch_cpp_save_state): New.
492 (pch_init): Call pch_cpp_save_state conditionally, instead of
493 calling cpp_save_state.
494
4a0ae68e
MLI
4952012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
496
497 PR c/53063
498 PR c/40989
499 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
500 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
501 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
502 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
503 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
504 * c-opts.c (c_common_handle_option): Remove explicit handling from
505 here.
506 (c_common_post_options): Likewise.
507
67e4210b
EB
5082012-10-18 Eric Botcazou <ebotcazou@adacore.com>
509
510 * c-ada-spec.c (LOCATION_COL): Delete.
511 (compare_location): New function.
512 (compare_node): Use it.
513 (compare_comment): Likewise.
514
65d4f2cd
MLI
5152012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
516
517 PR c/53063
518 PR c/40989
519 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
520 * c-opts.c (c_common_handle_option): Do not set them here. Add
521 comment.
522 (c_common_post_options): Likewise.
523
909881cb
EB
5242012-10-16 Eric Botcazou <ebotcazou@adacore.com>
525
526 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
527 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
528 Remove POINTER_TYPE handling, add large unsigned handling and use
529 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
530
3a785c97
JJ
5312012-10-12 Jakub Jelinek <jakub@redhat.com>
532
533 PR c/54381
534 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
535 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
536 locs and array of 3 trees instead of just single loc and single
537 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
538 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
539 For *cmp* builtins that take two sources strings report warnings
540 about first and second source, not about destination and source.
541
5e54f81d
MG
5422012-10-12 Marc Glisse <marc.glisse@inria.fr>
543
544 PR c++/53055
545 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
546
f5b02f1e
EB
5472012-10-11 Eric Botcazou <ebotcazou@adacore.com>
548
549 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
550 declaring something coming from another file.
551
b46dbc6c
AC
5522012-10-10 Arnaud Charlet <charlet@adacore.com>
553
f5b02f1e 554 PR ada/54845
b46dbc6c
AC
555 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
556
5d9de0d0
PC
5572012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
558
559 PR c++/54194
560 * c-common.c (warn_about_parentheses): Add location_t parameter;
561 use EXPR_LOC_OR_LOC.
562 * c-common.h: Update declaration.
563
a212e43f
MG
5642012-10-09 Marc Glisse <marc.glisse@inria.fr>
565
566 PR c++/54427
567 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
568 more operations. Make error messages optional.
569 * c-common.h (enum stv_conv): Moved from c-typeck.c.
570 (scalar_to_vector): Declare.
571
b1db7f91
JM
5722012-10-08 Jason Merrill <jason@redhat.com>
573
574 * c-common.c (c_common_reswords): Add thread_local.
575
e28d52cf
DS
5762012-10-08 Dodji Seketeli <dodji@redhat.com>
577
578 PR c++/53528 C++11 attribute support
579 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
580 new functions.
581 * c-common.c (check_cxx_fundamental_alignment_constraints): New
582 static function.
583 (handle_aligned_attribute): In choose strictest alignment
584 among many. Use new check_cxx_fundamental_alignment_constraints.
585 (handle_transparent_union_attribute): In c++11 attribute syntax,
586 don't look through typedefs.
587
3b78de56
AC
5882012-10-04 Arnaud Charlet <charlet@adacore.com>
589
590 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
591 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
592 out of dumpfile.h.
593
6040bb5f
DC
5942012-09-25 Dehao Chen <dehao@google.com>
595
596 PR middle-end/54645
3b78de56 597 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
598 map when read in the pch.
599
0b07a57e
AC
6002012-09-18 Arnaud Charlet <charlet@adacore.com>
601
602 * c-ada-spec.c: Style fixes.
603
da5182be
TQ
6042012-09-18 Thomas Quinot <quinot@adacore.com>
605
606 * c.opt (-fada-spec-parent): Define new command line switch.
607 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
608 is specified, generate binding spec as a child of the specified unit.
609
0ccb505d
PC
6102012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
611 Manuel López-Ibáñez <manu@gcc.gnu.org>
612
613 PR c++/53210
614 * c.opt ([Winit-self]): Enabled by -Wall in C++.
615
c583af79
AC
6162012-08-23 Arnaud Charlet <charlet@adacore.com>
617
618 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
619 for pointers, and add missing Convention C pragma.
620 (print_ada_struct_decl): Add missing aliased keyword.
621 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
622
1a4049e7
JJ
6232012-08-17 Jakub Jelinek <jakub@redhat.com>
624
625 * c-common.c (sizeof_pointer_memaccess_warning): New function.
626 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
627 * c-opts.c (c_common_handle_option): Enable it for -Wall.
628 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
629 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
630
70b5e7dc
RG
6312012-08-10 Richard Guenther <rguenther@suse.de>
632
633 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
634
f8923f7e
SB
6352012-08-07 Steven Bosscher <steven@gcc.gnu.org>
636
637 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
638 instead of separate pp_newline and pp_flush.
639 (print_c_tree): Likewise.
640
e45abe1f
RH
6412012-07-26 Richard Henderson <rth@redhat.com>
642
643 * c-common.c (handle_hot_attribute): Allow labels.
644 (handle_cold_attribute): Likewise.
645
332f1d24
JJ
6462012-07-20 Jakub Jelinek <jakub@redhat.com>
647
648 PR c++/28656
649 * c-common.c (check_function_nonnull): Handle multiple nonnull
650 attributes properly.
651
7ee2468b
SB
6522012-07-16 Steven Bosscher <steven@gcc.gnu.org>
653
654 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
655 * c-ada-spec.c: Likewise.
656 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
657
ee7b28eb
SB
6582012-07-14 Steven Bosscher <steven@gcc.gnu.org>
659
660 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
661 Remove code conditional on it.
662
6bdf3519
SB
6632012-07-11 Steven Bosscher <steven@gcc.gnu.org>
664
665 * c-gimplify.c: Do not include basic-block.h.
666 * c-common.c: Do not include linfuncs.h.
667
532aafad
SB
6682012-07-08 Steven Bosscher <steven@gcc.gnu.org>
669
670 * c-common.h: Include tree.h.
671
8d0d1915
JM
6722012-07-02 Jason Merrill <jason@redhat.com>
673
674 PR c++/53524
675 * c-common.c (get_priority): Call default_conversion.
676
fbc873ad
UB
6772012-07-01 Uros Bizjak <ubizjak@gmail.com>
678
679 * c-pch.c (c_common_write_pch): Remove unused variables.
680
d4a10d0a
SB
6812012-06-29 Steven Bosscher <steven@gcc.gnu.org>
682
683 * cppspec.c: Moved from gcc/ to here.
684
6f3a2e23
KT
6852012-06-27 Kai Tietz <ktietz@redhat.com>
686
687 PR preprocessor/37215
688 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
689
8ca92d04
SB
6902012-06-21 Steven Bosscher <steven@gcc.gnu.org>
691
692 * c-common.h (c_common_print_pch_checksum): Remove.
693 * c-pch.c: Do not include output.h.
694 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
695 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
696 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
697 (struct c_pch_header): Remove.
698 (get_ident): Update gpch version.
699 (pch_init): Do not print executable_checksum to asm_out_file.
700 Do not fail if there is no asm_out_file to read back from. Set
701 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
702 (c_common_write_pch): Verify that nothing was written to asm_out_file
703 since pch_init was called. Do not write a c_pch_header, and do not
704 copy from asm_out_file to the PCH.
705 (c_common_read_pch): Do not read a c_pch_header, and do not restore
706 the content of asm_out_file from the PCH.
707 (c_common_print_pch_checksum): Remove.
708 * c-opts.c (c_common_init): Print out executable_checksum directly.
709
70f42967
SB
7102012-06-19 Steven Bosscher <steven@gcc.gnu.org>
711
712 * c-target.def (objc_declare_unresolved_class_reference,
713 objc_declare_class_definition): Add new hooks.
714
a8781821
SB
7152012-06-19 Steven Bosscher <steven@gcc.gnu.org>
716
717 * c-lex.c: Do not include output.h.
718 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
719 Remove uses of ASM_OUTPUT_IDENT.
720
9e1a8dd1
RR
7212012-06-15 Marc Glisse <marc.glisse@inria.fr>
722
723 PR c++/51033
724 * c-common.h (c_build_vec_perm_expr): Move decl here.
725 * c-common.c (c_build_vec_perm_expr): Move definition
726 here.
727
6f07a821
SB
7282012-06-06 Steven Bosscher <steven@gcc.gnu.org>
729
730 * c.opt (fconserve-space): Turn into a no-op.
731
9faeb493 7322012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
733
734 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
735 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
736 both the start and end of the function.
737
a4b7d13c
SB
7382012-06-04 Steven Bosscher <steven@gcc.gnu.org>
739
740 * c-common.c: Do not include output.h.
741 * c-pragma.c: Likewise.
742
c265f413
SA
7432012-06-04 Steven Bosscher <steven@gcc.gnu.org>
744
745 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
746 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
747 (lang_decl_name): Handle namespace decls.
748
be7a421e
SB
7492012-05-31 Steven Bosscher <steven@gcc.gnu.org>
750
751 * c-ada-spec.c: Do not include output.h.
752 * c-semantics.c: Likewise.
753
65de6659
JM
7542012-05-29 Joseph Myers <joseph@codesourcery.com>
755
756 * c-common.c: Fix typo.
757
ca5f4331
MM
7582012-05-29 Michael Matz <matz@suse.de>
759
760 * c-common.h (c_expand_decl): Remove prototype.
761
4f7f7aca
MLI
7622012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
763
764 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
765 * c-opts.c (c_common_handle_option): Remove code handling
766 warn_missing_braces.
767
4a792f9b
PC
7682012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
769
770 PR c++/25137
771 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
772 -Wmissing_braces.
773
650dc14a
DS
7742012-05-22 Dodji Seketeli <dodji@redhat.com>
775
776 PR c++/53322
777 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
778
9b095bf1
MLI
7792012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
780
781 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
782 * c-opts.c (c_common_handle_option): Do not handle explicitly
783 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
784
0b2c4be5
DS
7852012-05-16 Dodji Seketeli <dodji@redhat.com>
786
787 PR preprocessor/7263
788 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
789 to cpp_classify_number. For diagnostics, use the precise location
790 instead of the global input_location.
791
a1bde5af
PC
7922012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
793
d02924ef 794 PR c++/11856
a1bde5af
PC
795 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
796
d1ede5f4
BS
7972012-05-14 Bernd Schmidt <bernds@codesourcery.com>
798
a1bde5af 799 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 800
f2bc201f
MLI
8012012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
802
803 PR 53063
804 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
805 Wreorder): Use LangEnabledBy.
806 * c-opts.c (c_common_handle_option): Do not enable them
807 explicitly. Call lang-specific generated functions.
808 (c_common_post_options): Do not set them here.
809
95744782
MLI
8102012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
811
812 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
813 Wmissing-field-initializers,Wmissing-parameter-type,
814 Wold-style-declaration,Woverride-init): Use EnabledBy.
815 * c-opts.c (c_common_post_options): Do not set here explicitly.
816
7d5a5747
MLI
8172012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
818
819 PR 53063
820 * c-opts.c (c_common_handle_option): Use handle_generated_option
821 to enable sub-options.
822
5a3c9cf2
PC
8232012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
824
825 PR c++/53158
826 * c-common.c (warnings_for_convert_and_check): Use warning_at.
827
3ac8781c
RG
8282012-05-10 Richard Guenther <rguenther@suse.de>
829
830 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
831 adjust commentary about TYPE_IS_SIZETYPE types.
832
1e537948
MLI
8332012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
834
835 PR c++/53261
836 * c-common.c (warn_logical_operator): Check that argument of
837 integer_zerop is not NULL.
838
f2c4a785
MLI
8392012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
840
841 PR c/43772
842 * c-common.c (warn_logical_operator): Do not warn if either side
843 is already true or false.
844
50f305ca
MLI
8452012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
846
847 PR c/51712
848 * c-common.c (expr_original_type): New.
849 (shorten_compare): Do not warn for enumeration types.
850
0c3641b0
MLI
8512012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
852
853 * c.opt (fpermissive): Add Var(flag_permissive).
854
7edaa4d2
MG
8552012-04-30 Marc Glisse <marc.glisse@inria.fr>
856
857 PR c++/51033
858 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
859 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
860
b9c8da34
DS
8612012-04-30 Dodji Seketeli <dodji@redhat.com>
862
863 Add -Wvarargs option
864 * c.opt (Wvarargs): Define new option.
865
e6c69da0
MLI
8662012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
867
868 * c-common.c (check_function_arguments): Replace
869 Wmissing-format-attribute with Wsuggest-attribute=format.
870
90137d8f
MLI
8712012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
872
873 * c.opt (Wsuggest-attribute=format): New. Alias of
874 Wmissing-format-attribute.
875 * c-format.c (decode_format_type): Replace
876 Wmissing-format-attribute with Wsuggest-attribute=format.
877 (check_function_format): Likewise.
878
9faeb493 8792012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
880
881 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
882 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
883 * c.opt: Add Wliteral-suffix.
884
c1771a20
MLI
8852012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
886
887 PR c/44774
888 * c.opt (Wpedantic): New.
889 (pedantic): Alias Wpedantic.
890 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
891 (c_common_post_options): Likewise.
892 (sanitize_cpp_opts): Likewise.
893 * c-lex.c (interpret_float): Likewise.
894 * c-format.c (check_format_types): Likewise.
895 * c-common.c (pointer_int_sum): Likewise.
896 (c_sizeof_or_alignof_type): Likewise.
897 (c_add_case_label): Likewise.
898 (c_do_switch_warnings): Likewise.
899 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
900
04b391c1
JM
9012012-04-15 Jason Merrill <jason@redhat.com>
902
903 PR c++/52818
904 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
905 (C_STD_NAME): Distinguish between C++98 and C++11.
906
ac868f29
EB
9072012-04-11 Eric Botcazou <ebotcazou@adacore.com>
908
909 PR target/52624
910 * c-common.h (uint16_type_node): Rename into...
911 (c_uint16_type_node): ...this.
912 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
913 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
914
fd4116f4
MLI
9152012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
916
917 * c-common.c (warn_if_unused_value): Move definition to here.
918 * c-common.h (warn_if_unused_value): Move declaration to here.
919
573ac65e
WB
9202012-03-23 William Bader <williambader@hotmail.com>
921
922 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
923
552b8185
JM
9242012-03-20 Jason Merrill <jason@redhat.com>
925
926 * c-common.h (enum cxx_dialect): Add cxx1y.
927 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
928 test.
929 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
930 * c-opts.c (c_common_post_options): Likewise.
931 (set_std_cxx1y): New.
932 (c_common_handle_option): Call it.
933 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
934
04398fa8
PC
9352012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
936
937 PR c++/14710
938 * c.opt ([Wuseless-cast]): Add.
939
d2a12ae7
RG
9402012-03-16 Richard Guenther <rguenther@suse.de>
941
942 * c-pretty-print.c (pp_c_initializer_list): Adjust.
943
a12bf402
MLI
9442012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
945
946 PR c++/44783
947 * c.opt (ftemplate-backtrace-limit) Add.
948
5c30094f
RO
9492012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
950
951 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
952 handling.
953 * c-pragma.c (handle_pragma_extern_prefix): Remove.
954 (init_pragma): Don't register extern_prefix.
955
21fa2faf
RG
9562012-03-12 Richard Guenther <rguenther@suse.de>
957
958 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
959 (builtin_type_for_size): Likewise.
960
e3793c6f
JJ
9612012-02-13 Jakub Jelinek <jakub@redhat.com>
962
963 PR c++/52215
964 * c-common.c (sync_resolve_params): Don't decide whether to convert
965 or not based on TYPE_SIZE comparison, convert whenever arg_type
966 is unsigned INTEGER_TYPE.
967
93286335
PC
9682012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
969
970 PR c/52118
971 * c.opt ([Wunused-local-typedefs]): Fix description.
972
7a421706
MS
9732012-01-24 Mike Stump <mikestump@comcast.net>
974
975 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
976 exactly.
977
ba9b1f11
RG
9782012-01-18 Richard Guenther <rguenther@suse.de>
979
980 * c-opts.c (c_common_post_options): Reset LTO flags if
981 we are about to generate a PCH.
982
465406be
PC
9832012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
984
985 PR c++/51777
986 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
987 use pp_unsigned_wide_integer.
988
aee15221
RG
9892012-01-10 Richard Guenther <rguenther@suse.de>
990
991 PR middle-end/51806
992 * c-opts.c (c_common_handle_option): Move -Werror handling
993 to language independent code.
994
5720c0dc
RG
9952012-01-05 Richard Guenther <rguenther@suse.de>
996
997 PR middle-end/51764
998 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
999 from common.opt.
1000
73ac190a
PC
10012011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1002
1003 PR c++/51316
1004 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1005 of array types with an unknown bound.
1006
48b0b196
JM
10072011-12-20 Joseph Myers <joseph@codesourcery.com>
1008
1009 * c-common.c (flag_isoc99): Update comment to refer to C11.
1010 (flag_isoc1x): Change to flag_isoc11.
1011 * c-common.h (flag_isoc99): Update comment to refer to C11.
1012 (flag_isoc1x): Change to flag_isoc11.
1013 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1014 C11.
1015 * c-opts.c (set_std_c1x): Change to set_std_c11.
1016 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1017 Call set_std_c11.
1018 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1019 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1020 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1021 standard.
1022 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1023 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1024 (std=gnu1x): Make alias of std=gnu11.
1025
d58d6eb5
JM
10262011-12-19 Jason Merrill <jason@redhat.com>
1027
1028 PR c++/51228
1029 * c-common.c (handle_transparent_union_attribute): Check the first
1030 field if the type is complete.
1031
b3908fcc
JW
10322011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1033
1034 PR libstdc++/51365
1035 * c-common.c (RID_IS_FINAL): Add.
1036 * c-common.h (RID_IS_FINAL): Add.
1037
fea3ca91
IS
10382011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1039
1040 * c.opt (fgnu-runtime): Provide full description.
1041 (fnext-runtime): Likewise.
1042 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1043
62bad7cd
AM
10442011-11-28 Andrew MacLeod <amacleod@redhat.com>
1045
1046 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1047 predefines in one place. Add LOCK_FREE predefines.
1048 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1049 new func.
1050
c466c4ff
AM
10512011-11-24 Andrew MacLeod <amacleod@redhat.com>
1052
1053 PR c/51256
9faeb493 1054 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1055 conditions
9faeb493
UB
1056 (resolve_overloaded_atomic_exchange,
1057 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1058 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1059 error_mark_node for error conditions.
9faeb493 1060
a5952633
RG
10612011-11-08 Richard Guenther <rguenther@suse.de>
1062
1063 PR middle-end/51010
1064 c-family/
1065
0a35513e
AH
10662011-11-07 Richard Henderson <rth@redhat.com>
1067 Aldy Hernandez <aldyh@redhat.com>
1068 Torvald Riegel <triegel@redhat.com>
1069
1070 Merged from transactional-memory.
1071
1072 * c-common.c (handle_tm_wrap_attribute,
1073 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1074 (struct c_common_reswords): Added __transaction* keywords.
1075 (struct c_common_attribute_table): Added transaction* and tm_regparm
1076 attributes.
1077 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1078 masks.
1079 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1080 find_tm_attribute): Declare.
1081
6d87092d
JM
10822011-11-07 Jason Merrill <jason@redhat.com>
1083
1084 PR c++/35688
1085 * c-common.c, c-common.h: Revert yesterday's changes.
1086
8e7860a1
JM
10872011-11-06 Jason Merrill <jason@redhat.com>
1088
1089 PR c++/35688
1090 * c-common.c (decl_has_visibility_attr): Split out from...
1091 (c_determine_visibility): ...here.
1092 * c-common.h: Declare it.
1093
d19fa6b5
JM
10942011-11-06 Joseph Myers <joseph@codesourcery.com>
1095
1096 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1097 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1098 type.
1099 (check_user_alignment): New. Split out of
1100 handle_aligned_attribute. Disallow integer constants with
1101 noninteger types. Conditionally allow zero.
1102 (handle_aligned_attribute): Use check_user_alignment.
1103 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1104
86951993
AM
11052011-11-06 Andrew MacLeod <amacleod@redhat.com>
1106 Richard Henderson <rth@redhat.com>
1107
1108 Merged from cxx-mem-model.
1109
1110 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1111 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1112 parameters that are the same type size.
1113 (get_atomic_generic_size): New. Find size of generic
1114 atomic function parameters and do typechecking.
1115 (add_atomic_size_parameter): New. Insert size into parameter list.
1116 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1117 either __atomic_exchange_n or external library call.
9faeb493 1118 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1119 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1120 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1121 __atomic_load_n or an external library call.
1122 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1123 __atomic_store_n or an external library call.
1124 (resolve_overloaded_builtin): Handle new __atomic builtins.
1125
cf9e9959
EB
11262011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1127
1128 PR c++/50608
1129 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1130 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1131 <INDIRECT_REF>: Return the argument.
1132 <ARRAY_REF>: Remove special code for negative offset.
1133 Call fold_build_pointer_plus instead of size_binop.
1134 (fold_offsetof): Remove STOP_REF argument and adjust.
1135 * c-common.h (fold_offsetof_1): Declare.
1136 (fold_offsetof): Remove STOP_REF argument.
1137
25339f10
JM
11382011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1139
1140 PR c++/50810
1141 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1142 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1143 Wnarrowing for C++0x and C++98.
1144 * c.opt ([Wnarrowing]): Update.
1145
89401152
PC
11462011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1147
1148 PR c++/44277
1149 * c.opt: Add Wzero-as-null-pointer-constant.
1150
97e3ad20
JM
11512011-10-31 Jason Merrill <jason@redhat.com>
1152
15694fdd
JM
1153 * c.opt (-fdeduce-init-list): Off by default.
1154
97e3ad20
JM
1155 PR c++/50920
1156 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1157 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1158 and -Wc++11-compat.
1159 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1160
fb9120e3
RAV
11612011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1162
1163 PR c++/30066
1164 * c.opt (fvisibility-inlines-hidden): Description change.
1165
3ce4f9e4
ESR
11662011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1167
1168 Implement C++11 user-defined literals.
1169 * c-common.c (build_userdef_literal): New.
1170 * c-common.def: New tree code.
1171 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1172 * c-lex.c (interpret_float): Add suffix parm.
1173 (c_lex_with_flags): Build literal tokens.
1174
5f53c243
PC
11752011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1176
1177 PR c++/50841
1178 Revert:
1179 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1180
1181 PR c++/50810
1182 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1183 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1184 Wnarrowing for C++0x and C++98.
1185 * c.opt ([Wnarrowing]): Update.
1186
263734e1
PC
11872011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1188
1189 PR c++/50810
1190 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1191 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1192 Wnarrowing for C++0x and C++98.
1193 * c.opt ([Wnarrowing]): Update.
1194
d2e312d7
PC
11952011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1196
1197 PR c++/45385
1198 * c-common.c (conversion_warning): Remove code looking for
1199 artificial operands.
1200
d17687f6
DS
12012011-10-18 Dodji Seketeli <dodji@redhat.com>
1202
1203 PR bootstrap/50760
1204 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1205 !NO_IMPLICIT_EXTERN_C.
d17687f6 1206
fc8396e9
PC
12072011-10-17 Michael Spertus <mike_spertus@symantec.com>
1208
1209 * c-common.c (c_common_reswords): Add __bases,
1210 __direct_bases.
1211 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1212
12132011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1214
1215 PR c++/50757
1216 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1217
847e697a
TT
12182011-10-15 Tom Tromey <tromey@redhat.com>
1219 Dodji Seketeli <dodji@redhat.com>
1220
1221 * c.opt (fdebug-cpp): New option.
1222 * c-opts.c (c_common_handle_option): Handle the option.
1223 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1224 output stream in parameter. Factorized from ...
1225 (maybe_print_line): ... this. Dump location debug information when
1226 -fdebug-cpp is in effect.
1227 (print_line_1): New static function. Takes an output stream in
1228 parameter. Factorized from ...
1229 (print_line): ... here. Dump location information when -fdebug-cpp
1230 is in effect.
1231 (scan_translation_unit): Dump location information when
1232 -fdebug-cpp is in effect.
1233
92582b75
TT
12342011-10-15 Tom Tromey <tromey@redhat.com>
1235 Dodji Seketeli <dodji@redhat.com>
1236
1237 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1238 without argument.
1239 * c-opts.c (c_common_handle_option)<case
1240 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1241 cases. Handle -ftrack-macro-expansion with and without argument.
1242
46427374
TT
12432011-10-15 Tom Tromey <tromey@redhat.com>
1244 Dodji Seketeli <dodji@redhat.com>
1245
1246 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1247 (print_line, cb_define, do_line_change): Adjust to avoid touching
1248 the internals of struct line_map. Use the public API instead.
1249 * c-pch.c (c_common_read_pch): Likewise.
1250 * c-lex.c (fe_file_change): Likewise.
1251
fc8396e9
PC
12522011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1253
1254 PR c++/17212
1255 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1256
12572011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1258
1259 PR c++/33067
1260 * c-pretty-print.c (pp_c_floating_constant): Output
1261 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1262
e79983f4
MM
12632011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1264
1265 * c-common.c (def_builtin_1): Delete old interface with two
1266 parallel arrays to hold standard builtin declarations, and replace
1267 it with a function based interface that can support creating
1268 builtins on the fly in the future. Change all uses, and poison
1269 the old names. Make sure 0 is not a legitimate builtin index.
1270 * c-omp.c (c_finish_omp_barrier): Ditto.
1271 (c_finish_omp_taskwait): Ditto.
1272 (c_finish_omp_flush): Ditto.
1273
6637388f
TG
12742011-10-11 Tristan Gingold <gingold@adacore.com>
1275
1276 * c.opt: (fallow-parameterless-variadic-functions): New.
1277
3797cb21
DS
12782011-09-08 Dodji Seketeli <dodji@redhat.com>
1279
1280 PR c++/33255 - Support -Wunused-local-typedefs warning
1281 * c-common.h (struct c_language_function::local_typedefs): New
1282 field.
9faeb493
UB
1283 (record_locally_defined_typedef, maybe_record_typedef_use)
1284 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1285 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1286 (maybe_record_typedef_use)
1287 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1288 * c.opt: Declare new -Wunused-local-typedefs flag.
1289
693ddb1b
EB
12902011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1291
1292 PR middle-end/50266
1293 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1294 computations.
1295
830c740f
RG
12962011-09-05 Richard Guenther <rguenther@suse.de>
1297
1298 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1299 of integer_minus_one_node for empty array upper bounds.
1300
892a371f
DS
13012011-08-28 Dodji Seketeli <dodji@redhat.com>
1302
1303 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1304 it's the first time it's being called on this main TU.
1305
0e3fdb48
RB
13062011-08-24 Richard Guenther <rguenther@suse.de>
1307
1308 PR c/49396
1309 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1310
13112011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1312
1313 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1314 defined in cpp_init_builtins and c_cpp_builtins.
1315
d4a83c10
JM
13162011-08-19 Joseph Myers <joseph@codesourcery.com>
1317
1318 * c-common.c (c_common_reswords): Add __builtin_complex.
1319 * c-common.h (RID_BUILTIN_COMPLEX): New.
1320
bbceee64
JM
13212011-08-18 Joseph Myers <joseph@codesourcery.com>
1322
1323 * c-common.c (c_common_reswords): Add _Noreturn.
1324 (keyword_is_function_specifier): Handle RID_NORETURN.
1325 * c-common.h (RID_NORETURN): New.
1326
0e3a99ae
AS
13272011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1328
1329 * c-common.c (unsafe_conversion_p): New function. Check if it is
1330 unsafe to convert an expression to the type.
1331 (conversion_warning): Adjust, use unsafe_conversion_p.
1332 * c-common.h (unsafe_conversion_p): New function declaration.
1333
20906c66
JJ
13342011-08-02 Jakub Jelinek <jakub@redhat.com>
1335
1336 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1337 (c_finish_omp_taskyield): New prototype.
1338 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1339 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1340 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1341 or RHS1 have side-effects, evaluate those too in the right spot,
1342 if it is a decl and LHS is also a decl, error out if they
1343 aren't the same.
1344 (c_finish_omp_taskyield): New function.
1345 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1346 * c-pragma.c (omp_pragmas): Add taskyield.
1347 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1348 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1349 PRAGMA_OMP_CLAUSE_MERGEABLE.
1350
770e5a2e
DS
13512011-07-25 Dodji Seketeli <dodji@redhat.com>
1352
1353 * c-common.h (set_underlying_type): Remove parm name from
1354 declaration.
1355
1baae426
RG
13562011-07-25 Romain Geissler <romain.geissler@gmail.com>
1357
1358 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1359
fcb21722
JM
13602011-07-22 Jason Merrill <jason@redhat.com>
1361
76f86d00
JM
1362 PR c++/49793
1363 * c.opt (Wnarrowing): New.
1364
3a636414
JM
1365 PR c++/30112
1366 * c-common.h: Declare c_linkage_bindings.
1367 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1368
fcb21722
JM
1369 PR c++/49813
1370 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1371 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1372 as flag_isoc99 for 'restrict'.
1373 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1374
02614448
ILT
13752011-07-21 Ian Lance Taylor <iant@google.com>
1376
1377 PR middle-end/49705
1378 * c-common.c (c_disable_warnings): New static function.
1379 (c_enable_warnings): New static function.
1380 (c_fully_fold_internal): Change local unused_p to bool. Call
1381 c_disable_warnings and c_enable_warnings rather than change
1382 c_inhibit_evaluation_warnings.
1383
34429675
JM
13842011-07-20 Jason Merrill <jason@redhat.com>
1385
1386 PR c++/6709 (DR 743)
1387 PR c++/42603 (DR 950)
1388 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1389 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1390 (CPP_DECLTYPE): New.
1391 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1392
5d49b6a7
RG
13932011-07-19 Richard Guenther <rguenther@suse.de>
1394
1395 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1396 * c-omp.c (c_finish_omp_for): Likewise.
1397
e84a58ff
EB
13982011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1399
1400 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1401 body on the next line.
1402
329af3c7
JM
14032011-07-08 Jason Merrill <jason@redhat.com>
1404
4063e61b
JM
1405 PR c++/45437
1406 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1407
329af3c7
JM
1408 PR c++/49673
1409 * c-common.c (c_apply_type_quals_to_decl): Don't check
1410 TYPE_NEEDS_CONSTRUCTING.
1411
1a072294
RG
14122011-07-06 Richard Guenther <rguenther@suse.de>
1413
1414 * c-common.c (c_common_nodes_and_builtins):
1415 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1416
fce5dddd
RG
14172011-07-05 Richard Guenther <rguenther@suse.de>
1418
1419 * c-common.c (c_common_nodes_and_builtins): Build all common
1420 tree nodes first.
1421
45d439ac
JJ
14222011-06-27 Jakub Jelinek <jakub@redhat.com>
1423
56300785
JJ
1424 * c-common.h (c_tree_chain_next): New static inline function.
1425
45d439ac
JJ
1426 * c-common.c (check_builtin_function_arguments): Handle
1427 BUILT_IN_ASSUME_ALIGNED.
1428
e0a8ecf2
AM
14292011-06-21 Andrew MacLeod <amacleod@redhat.com>
1430
1431 * c-common.c: Add sync_ or SYNC__ to builtin names.
1432 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
1433
14342011-06-20 Pierre Vittet <piervit@pvittet.com>
1435
1436 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1437 handler.
1438 (gen_pragma_handler): New union.
1439 (internal_pragma_handler): New type.
1440 (c_register_pragma_with_data)
1441 (c_register_pragma_with_expansion_and_data): New functions.
1442
1443 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1444 (c_register_pragma, c_register_pragma_with_expansion)
1445 (c_invoke_pragma_handler): Changed to work with
1446 internal_pragma_handler.
1447 (c_register_pragma_with_data)
1448 (c_register_pragma_with_expansion_and_data): New functions.
1449
677f3fa8
JM
14502011-06-14 Joseph Myers <joseph@codesourcery.com>
1451
1452 * c-common.c: Include common/common-target.h.
1453 (handle_section_attribute): Use
1454 targetm_common.have_named_sections.
1455 * c-cppbuiltin.c: Include common/common-target.h.
1456 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1457
d7fc8c14
RG
14582011-06-10 Richard Guenther <rguenther@suse.de>
1459
1460 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1461 to print a IDENTIFIER_NODE.
1462
10e48e39
RO
14632011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1464 Joseph Myers <joseph@codesourcery.com>
1465
1466 * c.opt (fbuilding-libgcc): New option.
1467 * c-cppbuiltin.c (c_cpp_builtins): Define
1468 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1469
6976ae51
JM
14702011-06-07 Jason Merrill <jason@redhat.com>
1471
3ff60975
JM
1472 * c-common.c (max_tinst_depth): Lower default to 900.
1473
6976ae51
JM
1474 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1475
009db074
RG
14762011-06-07 Richard Guenther <rguenther@suse.de>
1477
1478 * c-common.c (c_common_nodes_and_builtins): Do not set
1479 size_type_node or call set_sizetype.
1480
b4592b92
DS
14812011-06-07 Dodji Seketeli <dodji@redhat.com>
1482
1483 PR debug/49130
1484 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 1485 type when using pointer comparison to compare types.
b4592b92 1486
014ab419
JW
14872011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1488
1489 * c.opt: Add -Wdelete-non-virtual-dtor.
1490 * c-opts.c (c_common_handle_option): Include it in -Wall.
1491
4f60111f
NF
14922011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1493
1494 PR bootstrap/49190
1495
1496 Revert:
1497 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1498
1499 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1500 not tree_common.
1501
4cc4f2f4
JJ
15022011-05-27 Jakub Jelinek <jakub@redhat.com>
1503
1504 PR c++/49165
1505 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1506 C++ don't call c_common_truthvalue_conversion on void type arms.
1507
38e01f9e
NF
15082011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1509
1510 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1511 (stmt_list_stack): Define.
1512 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1513 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1514
92e948a8
NF
15152011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1516
1517 * c-common.c (warning_candidate_p): Check for BLOCKs.
1518
a2fc3e63
NF
15192011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1520
1521 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1522 not tree_common.
1523
0957c029
JJ
15242011-05-25 Jakub Jelinek <jakub@redhat.com>
1525
1526 * c-common.c (def_fn_type): Remove extra va_end.
1527
828fb3ba
JM
15282011-05-23 Jason Merrill <jason@redhat.com>
1529
1530 PR c++/48106
1531 * c-common.c (c_common_get_narrower): New.
1532 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1533
dde05067
NF
15342011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1535
1536 * c-common.h (check_function_arguments): Tweak prototype of
1537 check_function_arguments.
1538 * c-common.c (check_function_arguments): Likewise. Adjust
1539 calls to check_function_nonnull, check_function_format, and
1540 check_function_sentinel.
1541 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1542 separate attributes and typelist arguments. Use
1543 FOREACH_FUNCTION_ARGS to iterate over argument types.
1544
3c0d13bf
PC
15452011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1546
1547 * c-common.c (c_common_reswords): Reorder.
1548 * c-common.h (rid): Likewise.
1549
8242dd04
NF
15502011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1551
1552 * c-common.c (def_fn_type): Don't call build_function_type, call
1553 build_function_type_array or build_varargs_function_type_array
1554 instead.
1555 (c_common_nodes_and_builtins): Likewise.
1556
3d528853
NF
15572011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1558
1559 * c-common.c (c_add_case_label): Omit the loc argument to
1560 build_case_label.
1561 * c-common.h (build_case_label): Remove.
1562 * c-semantics.c (build_case_label): Remove.
1563
a04a722b
JM
15642011-05-05 Joseph Myers <joseph@codesourcery.com>
1565
1566 * c-objc.h (objc_start_method_definition): Update prototype.
1567 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1568
e19a18d4
NF
15692011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1570
1571 * c-common.c (check_main_parameter_types): Reindent. Don't use
1572 TYPE_ARG_TYPES directly.
1573 (handle_nonnull_attribute): Likewise.
1574 (sync_resolve_params): Likewise.
1575 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1576 to check_format_string.
1577 (handle_format_attribute): Likewise.
1578 (check_format_string): Take a function type to examine instead of
1579 a type list. Use a function_arg_iterator to step through argument
1580 types.
1581
c62c040f
RG
15822011-05-04 Richard Guenther <rguenther@suse.de>
1583
1584 * c-common.c (fix_string_type): Use size_int for index type bounds.
1585 (start_fname_decls): Do not pass NULL to build_int_cst.
1586 (c_init_attributes): Likewise.
1587 * c-lex.c (c_lex_with_flags): Likewise.
1588
c12ff9d8
JM
15892011-04-27 Jason Merrill <jason@redhat.com>
1590
1591 * c-common.c (make_tree_vector_from_list): New.
1592 * c-common.h: Declare it.
1593
304dfbe3
RG
15942011-04-26 Richard Guenther <rguenther@suse.de>
1595
1596 PR preprocessor/48248
1597 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1598 for output size with -P.
1599
3c0d13bf
PC
16002011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1601
1602 * c-common.c (struct c_common_resword): Add __underlying_type.
1603 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1604
04695783
JM
16052011-04-20 Jim Meyering <meyering@redhat.com>
1606
1607 * c-format.c (init_dollar_format_checking): Remove useless
1608 if-before-free.
1609
0dc33c3c
NP
16102011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1611
1612 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1613 (objc_detect_field_duplicates): New.
0dc33c3c 1614 * stub-objc.c: Likewise.
3c0d13bf 1615
c59633d9
NP
16162011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1617
1618 * stub-objc.c (objc_declare_protocols): Renamed to
1619 objc_declare_protocol.
1620 * c-objc.h: Likewise.
3c0d13bf 1621
32dabdaf
NP
16222011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1623
1624 * stub-objc.c (objc_declare_class): Updated argument name.
1625
81f653d6
NF
16262011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1627
1628 * c-common.h (c_common_init_ts): Declare.
1629 * c-common.c (c_common_init_ts): Define.
1630
eb345401
NP
16312011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1632
1633 * c-objc.h (objc_build_message_expr): Updated prototype.
1634 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 1635
a358e188
MJ
16362011-04-12 Martin Jambor <mjambor@suse.cz>
1637
1638 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1639 of cgraph_node.
1640
e6313a78
RG
16412011-04-11 Richard Guenther <rguenther@suse.de>
1642
1643 * c-common.c (complete_array_type): Build a range type of
1644 proper type.
1645
dcf0c47e
NF
16462011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1647
1648 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1649 (handle_type_generic_attribute): Likewise.
1650
1ee44b26
JM
16512011-04-07 Jason Merrill <jason@redhat.com>
1652
1653 PR c++/48450
1654 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1655 conversion from C++0x scoped enum.
1656
acce4e77
JM
16572011-04-06 Joseph Myers <joseph@codesourcery.com>
1658
1659 * c-target-def.h: New file.
1660 * c-target.def: New file.
1661 * c-target.h: New file.
1662 * c-common.c (targetcm): Don't define here.
1663 * c-common.h (default_handle_c_option): Declare.
1664 * c-format.c: Include c-target.h instead of target.h.
1665 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1666 include tm.h.
1667 (default_handle_c_option): Move from targhooks.c.
1668
e2eefb55
JJ
16692011-03-29 Jakub Jelinek <jakub@redhat.com>
1670
1671 PR preprocessor/48248
1672 * c-ppoutput.c (print): Add src_file field.
1673 (init_pp_output): Initialize it.
1674 (maybe_print_line): Don't optimize by adding up to 8 newlines
1675 if map->to_file and print.src_file are different file.
1676 (print_line): Update print.src_file.
1677
ba78087b
KT
16782011-03-25 Kai Tietz <ktietz@redhat.com>
1679
1680 * c-ada-spec.c (compare_comment): Use filename_cmp
1681 instead of strcmp for filename.
1682
0edf1bb2
JL
16832011-03-25 Jeff Law <law@redhat.com>
1684
1685 * c-family/c-common.c (def_fn_type): Add missing va_end.
1686
c7dc8804
JM
16872011-03-25 Jason Merrill <jason@redhat.com>
1688
1689 * c.opt: Add -std=c++03.
1690
d1d879b1
EB
16912011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1692
1693 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1694
62d784f7
KT
16952011-03-17 Kai Tietz
1696
1697 PR target/12171
5050afdf
KT
1698 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1699 Display allowed attributes for function pointer types.
1700 (pp_c_attributes_display): New function to display
1701 attributes having affects_type_identity flag set to true.
1702 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1703
62d784f7
KT
1704 * c-common.c (c_common_attribute_table):
1705 Add new element.
1706 (c_common_format_attribute_table): Likewise.
1707
82d37118
JM
17082011-03-18 Jason Merrill <jason@redhat.com>
1709
49a000c3
JM
1710 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1711 * c-common.h: Don't declare it here.
1712 * c-common.c: Or define it here.
1713 * c-opts.c (c_common_handle_option): Or set it here.
1714
82d37118
JM
1715 PR c++/35315
1716 * c-common.c (handle_transparent_union_attribute): Don't
1717 make a duplicate type in C++.
1718
17bc631c
JM
17192011-03-15 Jason Merrill <jason@redhat.com>
1720
1721 * c-common.c (max_constexpr_depth): New.
1722 * c-common.h: Declare it.
1723 * c-opts.c (c_common_handle_option): Set it.
1724 * c.opt (fconstexpr-depth): New option.
1725
1b9b91a6
JM
17262011-03-11 Jason Merrill <jason@redhat.com>
1727
f231b5ff
JM
1728 * c-common.c (attribute_takes_identifier_p): Add missing const.
1729
1b9b91a6
JM
1730 PR c++/46803
1731 * c-common.c (attribute_takes_identifier_p): Assume that an
1732 unknown attribute takes an identifier.
1733
a19e4d44
NF
17342011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1735
1736 PR c/47786
1737 * c-common.c (c_type_hash): Call list_length instead of iterating
1738 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1739
982d62f6
JJ
17402011-02-19 Jakub Jelinek <jakub@redhat.com>
1741
1742 PR c/47809
1743 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1744
0a256240
NP
17452011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1746
1747 * c.opt (fobjc-abi-version=) New.
1748 (fobjc-nilcheck): New.
1749
ba9e6dd5
NF
17502011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1751
1752 PR c++/46890
1753 * c-common.h (keyword_is_decl_specifier): Declare.
1754 * c-common.c (keyword_is_decl_specifier): Define.
1755 (keyword_is_function_specifier): New function.
1756
7273813a
JJ
17572011-01-26 Jakub Jelinek <jakub@redhat.com>
1758
1759 PR c/47473
1760 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1761 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1762 REAL_TYPE.
1763
908ef79b
AC
17642011-01-26 Arnaud Charlet <charlet@adacore.com>
1765
1766 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1767
237e9384
JJ
17682011-01-26 Jakub Jelinek <jakub@redhat.com>
1769
1770 PR pch/47430
1771 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1772 after init_c_lex if pch_file is set.
1773
47ea1edf
DK
17742011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1775
d4dba752 1776 PR c++/43601
47ea1edf
DK
1777 * c.opt (-fkeep-inline-dllexport): New switch.
1778
2aa9c6ae
RG
17792011-01-12 Richard Guenther <rguenther@suse.de>
1780
1781 PR middle-end/32511
1782 * c-common.c (handle_weak_attribute): Warn instead of error
1783 on declaring an inline function weak.
1784
7bd11157
TT
17852011-01-05 Tom Tromey <tromey@redhat.com>
1786
1787 * c-common.h (lvalue_error): Update.
1788 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1789 not error.
1790
0e66e494 17912010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 1792
b4f588c4
NP
1793 PR objc/47075
1794 * c-objc.h (objc_finish_message_expr): Added argument to
1795 prototype.
1796
f4da8dce
NF
17972010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1798
1799 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1800 Use prototype_p.
1801
46270f14
NP
18022010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1803
1804 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 1805 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 1806
4816c593
NF
18072010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1808
1809 * c-common.h (readonly_error): Declare.
1810 * c-common.c (readonly_error): Define.
1811
7a6daeb0
NF
18122010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1813
1814 * c-common.h (invalid_indirection_error): Declare.
1815 * c-common.c (invalid_indirection_error): Define.
1816
892f6119
RG
18172010-12-03 Richard Guenther <rguenther@suse.de>
1818
1819 PR c/46745
1820 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1821 (pp_c_unary_expression): Likewise.
1822 (pp_c_expression): Likewise.
1823
6c39e757
NP
18242010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1825
1826 * c-common.h (objc_finish_function): New.
1827 (objc_non_volatilized_type): Removed.
1828 (objc_type_quals_match): Removed.
1829 * stub-objc.c (objc_finish_function): New.
1830 (objc_non_volatilized_type): Removed.
1831 (objc_type_quals_match): Removed.
9faeb493 1832
7c475d11
JM
18332010-11-30 Joseph Myers <joseph@codesourcery.com>
1834
1835 * c-common.h (parse_optimize_options): Declare.
1836 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1837 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1838
71f3e391
JM
18392010-11-29 Joseph Myers <joseph@codesourcery.com>
1840
1841 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1842 GET_ENVIRONMENT.
1843 * c-pch.c (O_BINARY): Don't define here.
1844 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1845
d5fabb58
JM
18462010-11-25 Joseph Myers <joseph@codesourcery.com>
1847
1848 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1849 targetm.except_unwind_info.
1850
299404a1
JM
18512010-11-23 Joseph Myers <joseph@codesourcery.com>
1852
1853 * c-opts.c (c_common_handle_option): Pass location to
1854 set_struct_debug_option.
1855
c98cd5bf
JM
18562010-11-23 Joseph Myers <joseph@codesourcery.com>
1857
1858 * c-common.c (visibility_options): Move from ../opts.c.
1859 * c-common.h (struct visibility_flags, visibility_options):
1860 Declare here.
1861 * c-opts.c (finish_options): Rename to c_finish_options.
1862 (c_common_init): Update call to finish_options.
1863
a9546771
NP
18642010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1865
1866 PR objc/34033
1867 * c-lex.c (lex_string): Check that each string in an Objective-C
1868 string concat sequence starts with either one or zero '@', and
1869 that there are no spurious '@' signs at the end.
1870
24a57808
JM
18712010-11-20 Joseph Myers <joseph@codesourcery.com>
1872
1873 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1874 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1875 HANDLE_PRAGMA_VISIBILITY.
1876 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1877 HANDLE_PRAGMA_VISIBILITY): Don't define.
1878 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1879
a9aa2c3a
NF
18802010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1881
1882 PR c++/16189
1883 PR c++/36888
1884 PR c++/45331
1885 * c-common.h (keyword_begins_type_specifier): Declare.
1886 (keyword_is_storage_class_specifier): Declare.
1887 (keyword_is_type_qualifier): Declare.
1888 * c-common.c (keyword_begins_type_specifier): New function.
1889 (keyword_is_storage_class_specifier): New function.
1890 (keyword_is_type_qualifier): Declare.
1891
5386338c
JM
18922010-11-19 Joseph Myers <joseph@codesourcery.com>
1893
1894 PR c/46547
1895 * c-common.c (in_late_binary_op): Define.
1896 (c_common_truthvalue_conversion): Check in_late_binary_op before
1897 calling c_save_expr.
1898 * c-common.h (in_late_binary_op): Declare.
1899
69ccdddb
JM
19002010-11-19 Joseph Myers <joseph@codesourcery.com>
1901
1902 * c-opts.c (c_common_handle_option): Update calls to
1903 set_struct_debug_option.
1904
6b192a09
NP
19052010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1906
1907 * c-common.h (objc_declare_protocols): Added additional argument.
1908 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 1909
fb52b50a
NF
19102010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1911
1912 PR c/33193
1913 * c-common.h (build_real_imag_expr): Declare.
1914 * c-semantics.c (build_real_imag_expr): Define.
1915
b37421c6
JM
19162010-11-17 Joseph Myers <joseph@codesourcery.com>
1917
1918 * c-opts.c (c_common_parse_file): Take no arguments.
1919 * c-common.h (c_common_parse_file): Update prototype.
1920
07078664
JJ
19212010-11-16 Jakub Jelinek <jakub@redhat.com>
1922
1923 PR c++/46401
1924 * c-common.c (warning_candidate_p): Don't track non-const calls
1925 or STRING_CSTs.
1926
c6a13190
ILT
19272010-11-15 Ian Lance Taylor <iant@google.com>
1928
1929 * c-lex.c (init_c_lex): Set macro debug callbacks if
1930 flag_dump_go_spec is set.
1931
925e8657
NP
19322010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1933
1934 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1935 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1936
bb0a9581
NF
19372010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1938
1939 PR preprocessor/45038
1940 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1941 dialects.
1942
c5fa0890
JM
19432010-11-12 Joseph Myers <joseph@codesourcery.com>
1944
1945 * c-common.h (c_family_lang_mask): Declare.
1946 * c-opts.c (c_family_lang_mask): Make extern.
1947 * c-pragma.c (handle_pragma_diagnostic): Use
1948 control_warning_option.
1949
a4d8c676
JM
19502010-11-12 Joseph Myers <joseph@codesourcery.com>
1951
1952 * c-common.c (parse_optimize_options): Update call to
1953 decode_options.
1954 * c-common.h (c_common_handle_option): Update prototype.
1955 * c-opts.c (c_common_handle_option): Take location_t parameter and
1956 pass it to other functions.
1957
f954bd2c
JM
19582010-11-11 Joseph Myers <joseph@codesourcery.com>
1959
1960 * c-opts.c (warning_as_error_callback): Remove.
1961 (c_common_initialize_diagnostics): Don't call
1962 register_warning_as_error_callback.
1963 (c_common_handle_option): Handle -Werror=normalized= here.
1964
d8a07487
JM
19652010-11-10 Joseph Myers <joseph@codesourcery.com>
1966
1967 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1968 in diagnostic.
1969 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1970 letter.
1971 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1972 Remove trailing '.' from diagnostics.
1973 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1974
d5478783
JM
19752010-11-10 Joseph Myers <joseph@codesourcery.com>
1976
1977 * c-common.c (parse_optimize_options): Pass global_dc to
1978 decode_options.
1979 * c-opts.c (c_common_handle_option): Pass &global_options to
1980 set_Wstrict_aliasing.
1981 * c.opt (v): Don't mark Common or document here.
1982
91ebb981
IS
19832010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1984
1985 PR target/44981
1986 * c-format.c (format_type): New type gcc_objc_string_format_type.
1987 (valid_stringptr_type_p): New.
1988 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 1989 (check_format_string): Pass expected type, use
91ebb981
IS
1990 valid_stringptr_type_p (), check that the format string types are
1991 consistent with the format specification.
1992 (decode_format_attr): Warn if NSString is used outside objective-c.
1993 (format_types_orig): Add NSString.
1994 (format_name): New.
1995 (format_flags): New.
1996 (check_format_arg): Handle format strings requiring an external parser.
1997 first_target_format_type: New variable.
1998 (handle_format_attribute): Set up first_target_format_type, pass the
1999 expected format arg string type to check_format_string().
2000 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2001 * stub-objc.c (objc_string_ref_type_p): New.
2002 (objc_check_format_arg): New.
2003
bede2adc
NP
20042010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2005
9faeb493 2006 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2007 * c-common.h (objc_build_class_component_ref): New.
2008 * stub-objc.c (objc_build_class_component_ref): New.
2009
9a179d01
NP
20102010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2011
2012 * c.opt (Wproperty-assign-default): New option.
2013
22d8d616
NP
20142010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2015
2016 Implemented -fobjc-std=objc1 flag.
2017 * c.opt (fobjc-std=objc1): New option.
2018
2debdb4f
NP
20192010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2020
2021 Implemented format and noreturn attributes for Objective-C methods.
2022 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2023 attribute for Objective-C methods.
2024
ec52b111
JM
20252010-10-31 Jason Merrill <jason@redhat.com>
2026
2027 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2028 EXPR_LOC_OR_HERE.
2029
46a88c12
NP
20302010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2031
2032 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2033 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2034 (objc_add_property_declaration): Removed arguments for copies and
2035 ivar.
2036 (objc_build_getter_call): Renamed to
2037 objc_maybe_build_component_ref.
2038 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2039 (objc_is_property_ref): New.
2040 * c-common.c (c_common_reswords): Removed copies and ivar.
2041 * stub-objc.c (objc_add_property_declaration): Removed arguments
2042 for copies and ivar.
2043 (objc_build_getter_call): Renamed to
2044 objc_maybe_build_component_ref.
2045 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2046 (objc_is_property_ref): New.
9faeb493 2047
1e4bf85b
AC
20482010-10-29 Arnaud Charlet <charlet@adacore.com>
2049 Matthew Gingell <gingell@adacore.com>
2050
2051 * c-ada-spec.c (separate_class_package): New function.
2052 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2053 name of their enclosing package.
2054 (print_ada_declaration): Use separate_class_package.
2055
81f0bab2
JM
20562010-10-27 Jason Merrill <jason@redhat.com>
2057
2b08f2c5
JM
2058 * c-common.c (c_common_reswords): Add __is_literal_type.
2059 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2060
81f0bab2
JM
2061 * c-common.c (check_case_value): Remove special C++ code.
2062
200290f2
NP
20632010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2064
2065 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2066 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2067 and RID_LAST_PATTR.
2068 (objc_add_property_declaration): Added additional arguments.
2069 (objc_property_attribute_kind): Removed.
2070 (objc_set_property_attr): Removed.
2071 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2072 copy and nonatomic.
2073 * stub-objc.c (objc_add_property_declaration): Added additional
2074 arguments.
2075 (objc_set_property_attr): Removed.
9faeb493 2076
f614132b
NP
20772010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2078
2079 * c-common.h (objc_add_property_variable): Renamed to
2080 objc_add_property_declaration. Added location argument.
2081 * stub-objc.c (objc_add_property_variable): Same change.
2082
b8a18805
NP
20832010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2084
2085 * c-common.h (objc_maybe_printable_name): New.
2086 * stub-objc.c (objc_maybe_printable_name): New.
2087
30cd1c5d
AS
20882010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2089 Andrew Pinski <pinskia@gmail.com>
2090
2091 * c-common.h (c_common_mark_addressable_vec): Declare.
2092 * c-common.c (c_common_mark_addressable_vec): New function.
2093
249a82c4
NP
20942010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2095
2096 * c-common.h (objc_set_method_type): Removed.
2097 (objc_add_method_declaration): Added boolean argument.
2098 (objc_start_method_definition): Same change.
2099 (objc_build_method_signature): Same change.
2100 * stub-objc.c (objc_set_method_type): Removed.
2101 (objc_add_method_declaration): Added boolean argument.
2102 (objc_start_method_definition): Same change.
2103 (objc_build_method_signature): Same change.
2104
977e30bc
NP
21052010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2106
2107 * c-common.h (finish_file): Removed.
2108 (objc_write_global_declarations): New.
2109 * c-opts.c (c_common_parse_file): Do not call finish_file.
2110 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2111
da57d1b9
NP
21122010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2113
2114 Implemented parsing @synthesize and @dynamic for
2115 Objective-C/Objective-C++.
2116 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2117 (objc_add_synthesize_declaration): New.
2118 (objc_add_dynamic_declaration): New.
2119 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2120 * stub-objc.c (objc_add_synthesize_declaration): New.
2121 (objc_add_dynamic_declaration): New.
9faeb493 2122
0069111f
MM
21232010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2124
2125 PR target/46041
2126 * c-cppbuiltin.c (mode_has_fma): Move function here from
2127 builtins.c. Don't use the fma optab, instead just use the
2128 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2129 using -save-temps.
2130
e426b47b
NP
21312010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2132
2133 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2134
e426b47b
NP
2135 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2136
9faeb493 2137 Radar 4330422
e426b47b
NP
2138 * c-common.h (objc_non_volatilized_type): New declaration
2139 * stub-objc.c (objc_non_volatilized_type): New stub.
2140
90fbfdc3
NP
21412010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2142
e426b47b 2143 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2144
2145 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2146
9faeb493 2147 Radar 4133425
90fbfdc3 2148 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2149 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2150
c37d8c30
IS
21512010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2152
2153 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2154 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2155 (objc_ivar_visibility_kind): New enum.
2156 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2157 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2158 visibility enum.
2159
1b1562a5
MM
21602010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2161
2162 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2163 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2164 has the appropriate fma builtins.
2165 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2166
668ea4b1
IS
21672010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2168
1b1562a5 2169 merge from FSF apple 'trunk' branch.
668ea4b1 2170 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2171
668ea4b1
IS
2172 Radars 4436866, 4505126, 4506903, 4517826
2173 * c-common.c (c_common_resword): Define @property and its attributes.
2174 * c-common.h: Define property attribute enum entries.
2175 (OBJC_IS_PATTR_KEYWORD): New.
2176 (objc_property_attribute_kind): New enum.
2177 Declare objc_set_property_attr (), objc_add_property_variable (),
2178 objc_build_getter_call () and objc_build_setter_call ().
2179 * stub-objc.c (objc_set_property_attr): New stub.
2180 (objc_add_property_variable): Likewise.
2181 (objc_build_getter_call): Likewise.
2182 (objc_build_setter_call) Likewise.
1b1562a5 2183
a1178b30
IS
21842010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2185
1b1562a5 2186 merge from FSF apple 'trunk' branch.
a1178b30
IS
2187 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2188
2189 Radar 3803157 (method attributes)
2190 * c-common.c (handle_deprecated_attribute): Recognize
2191 objc methods as valid declarations.
2192 * c-common.h: Declare objc_method_decl ().
1b1562a5 2193 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2194
a75bfaa6
JM
21952010-10-08 Joseph Myers <joseph@codesourcery.com>
2196
2197 * c-common.c (parse_optimize_options): Call
2198 decode_cmdline_options_to_array_default_mask before
2199 decode_options. Update arguments to decode_options.
2200 * c-common.h (c_common_init_options_struct): Declare.
2201 * c-opts.c (c_common_init_options_struct): New. Split out from
2202 c_common_init_options.
2203
f05b9d93
NP
22042010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2205
2206 Implemented fast enumeration for Objective-C.
2207 * c-common.h (objc_finish_foreach_loop): New.
2208 * stub-objc.c (objc_finish_foreach_loop): New.
2209
1ebe4b4f
JM
22102010-10-05 Joseph Myers <joseph@codesourcery.com>
2211
2212 * c-common.h (struct diagnostic_context): Don't declare here.
2213 (c_common_initialize_diagnostics): Declare using
2214 diagnostic_context typedef.
2215 * c-opts.c (c_common_handle_option): Pass global_dc to
2216 handle_generated_option.
2217
d4d24ba4
JM
22182010-10-04 Joseph Myers <joseph@codesourcery.com>
2219
2220 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2221 handle_generated_option.
2222
478a1c5b
ILT
22232010-10-03 Ian Lance Taylor <iant@google.com>
2224
2225 * c.opt (-fplan9-extensions): New option.
2226
82a1c2fe
FXC
22272010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2228
2229 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2230 Remove.
2231 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2232 of duplicating code.
2233
92902b1b
IS
22342010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2235
2236 * c-common.c: Add two new entries for @optional
2237 and @required keywords.
2238
2239 merge from FSF 'apple/trunk' branch.
2240 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2241
2242 Radar 4386773
2243 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2244 objective-c keywords.
2245 (objc_set_method_opt): New declaration.
2246 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2247
46625112
JM
22482010-09-30 Joseph Myers <joseph@codesourcery.com>
2249
2250 * c-common.c (handle_optimize_attribute): Pass &global_options to
2251 cl_optimization_save and cl_optimization_restore.
2252 * c-opts.c (c_common_handle_option): Pass &global_options to
2253 handle_generated_option.
2254 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2255 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2256 &global_options to cl_optimization_restore.
2257
49b91f05
NP
22582010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2259
2260 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2261 Objective-C/Objective-C++ keywords.
2262
13ed556f 22632010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2264
9faeb493
UB
2265 Merge from 'apple/trunk' branch on FSF servers.
2266
a6341d57
NP
2267 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2268
2269 Radar 4281748
2270 * c-common.h (objc_check_global_decl): New declaration.
2271 * stub-objc.c (objc_check_global_decl): New stub.
2272
f0036cca
JM
22732010-09-29 Joseph Myers <joseph@codesourcery.com>
2274
2275 * c.opt: Don't use VarExists.
2276
e3339d0f
JM
22772010-09-29 Joseph Myers <joseph@codesourcery.com>
2278
2279 * c-common.c (c_cpp_error): Update names of diagnostic_context
2280 members.
2281 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2282 cl_optimization members.
2283 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2284 sanitize_cpp_opts, finish_options): Update names of cpp_options
2285 members.
2286
1973201f
NP
22872010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2288
2289 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2290 (objc_is_reserved_word): Removed.
2291 * c-common.c: Updated comments.
2292 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2293 objc_is_reserved_word.
2294 * stub-objc.c (objc_is_reserved_word): Removed.
2295
f7e71da5
IS
22962010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2297
9faeb493 2298 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2299 include attributes.
2300 (objc_start_method_definition): Likewise.
2301 (objc_build_keyword_decl): Likewise.
2302 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2303 (objc_start_method_definition): Likewise.
2304 (objc_build_keyword_decl): Likewise.
2305
c165dca7
IS
23062010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2307
2308 * c-common.h (objc_start_class_interface): Adjust prototype.
2309 (objc_start_category_interface): Likewise.
2310 (objc_start_protocol): Likewise.
2311 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2312 (objc_start_class_interface): Likewise.
2313 (objc_start_category_interface): Likewise.
2314
7458026b
ILT
23152010-09-27 Ian Lance Taylor <iant@google.com>
2316
2317 * c-common.c (c_common_attribute_table): Add no_split_stack.
2318 (handle_no_split_stack_attribute): New static function.
2319
b581b85b
NP
23202010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2321
9faeb493 2322 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2323
2324 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2325
9faeb493 2326 Radar 4229905
b581b85b
NP
2327 * c-common.h (objc_have_common_type): New declaration.
2328 * stub-objc.c (objc_have_common_type): New stub.
2329
2330 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2331
2332 Radar 4154928
2333 * c-common.h (objc_common_type): New prototype.
9faeb493 2334 * stub-objc.c (objc_common_type): New stub.
b581b85b 2335
46a4da10
JH
23362010-09-24 Jan Hubicka <jh@suse.cz>
2337
2338 * c-common.c (handle_leaf_attribute): New function.
2339 (struct attribute_spec c_common_att): Add leaf.
2340
e200444e
JM
23412010-09-22 Joseph Myers <joseph@codesourcery.com>
2342
2343 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2344 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2345 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2346 -include-barrier, -include-directory, -include-directory=,
2347 -include-directory-after, -include-directory-after=,
2348 -include-prefix, -include-prefix=, -include-with-prefix,
2349 -include-with-prefix=, -include-with-prefix-after,
2350 -include-with-prefix-after=, -include-with-prefix-before,
2351 -include-with-prefix-before=, -no-integrated-cpp,
2352 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2353 -output=, -pedantic, -pedantic-errors, -preprocess,
2354 -print-missing-file-dependencies, -trace-includes, -traditional,
2355 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2356 -user-dependencies, -verbose, -write-dependencies,
2357 -write-user-dependencies, no-integrated-cpp, traditional): New.
2358
29a80ea6
NP
23592010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2360
2361 PR objc/23710
ac1fc2fc
NP
2362 * c-common.h (objc_start_method_definition): Return bool instead
2363 of void.
2364 * stub-objc.c (objc_start_method_definition): Return bool instead
2365 of void.
2366
23672010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2368
2369 PR objc/25965
2370 * c-common.h (objc_get_interface_ivars): New declaration.
2371 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 2372
de621752
ILT
23732010-09-15 Ian Lance Taylor <iant@google.com>
2374
2375 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 2376 messages. Remove period at end of warning message.
de621752 2377
ba885ec5
NS
23782010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2379
2380 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2381 (handle_alias_attribute): ... here.
2382 (handle_ifunc_attribute): New.
2383
c5ee1358
MM
23842010-09-06 Mark Mitchell <mark@codesourcery.com>
2385
2386 * c-common.h (do_warn_double_promotion): Declare.
2387 * c-common.c (do_warn_double_promotion): Define.
2388
0a0b3574
MM
23892010-09-05 Mark Mitchell <mark@codesourcery.com>
2390
2391 * c.opt (Wdouble-promotion): New.
2392
d1779886
JM
23932010-09-02 Joseph Myers <joseph@codesourcery.com>
2394
2395 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2396 fvtable-thunks, fxref): Mark no longer supported in help text.
2397
2d2bd949
JM
23982010-09-02 Joseph Myers <joseph@codesourcery.com>
2399
2400 * c.opt (Wimport, fall-virtual, falt-external-templates,
2401 fdefault-inline, fenum-int-equiv, fexternal-templates,
2402 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2403 fname-mangling-version-, fnew-abi, fnonnull-objects,
2404 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2405 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2406 applicable.
2407 (fhandle-exceptions): Mark with Alias and Warn.
2408 * c-opts.c (c_common_handle_option): Don't handle options marked
2409 as ignored.
2410
5de8299c
JM
24112010-09-02 Joseph Myers <joseph@codesourcery.com>
2412
2413 * c.opt (Wcomments, Werror-implicit-function-declaration,
2414 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2415 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2416 aliases.
2417 * c-common.c (option_codes): Use OPT_Wcomment instead of
2418 OPT_Wcomments.
2419 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2420 Don't handle options marked as aliases.
2421
0ceb0201
RG
24222010-08-25 Richard Guenther <rguenther@suse.de>
2423
2424 * c-common.c (c_common_get_alias_set): Remove special
2425 handling for pointers.
2426
ac47786e
NF
24272010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2428
2429 * c-common.c: Use FOR_EACH_VEC_ELT.
2430 * c-gimplify.c: Likewise.
2431 * c-pragma.c: Likewise.
2432
c878765b
JM
24332010-08-16 Joseph Myers <joseph@codesourcery.com>
2434
2435 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2436 RejectDriver.
2437 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2438 RejectDriver.
2439 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2440 instead of OPT_MDX and OPT_MMDX.
2441
603349bf
JM
24422010-08-16 Joseph Myers <joseph@codesourcery.com>
2443
2444 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2445
644fa7ac
JM
24462010-08-12 Joseph Myers <joseph@codesourcery.com>
2447
2448 * c.opt (MD, MMD): Change to MDX and MMDX.
2449 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2450
481e1176
JM
24512010-08-11 Joseph Myers <joseph@codesourcery.com>
2452
2453 * c-opts.c (c_common_handle_option): Call handle_generated_option
2454 instead of handle_option.
2455
ac8dc9f7
NF
24562010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2457
2458 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2459 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2460
4f8c876d
NF
24612010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2462
2463 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2464 (pending_redefine_extname): Change type to a VEC.
2465 (add_to_renaming_pragma_list): Update for new type of
2466 pending_redefine_extname.
ac8dc9f7 2467 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 2468
3b0c690e
AC
24692010-08-04 Arnaud Charlet <charlet@adacore.com>
2470
2471 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2472 visited.
2473 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2474 decide whether a type has already been declared/seen.
2475 Do not go to the original type.
2476 (dump_nested_types): New parameter forward.
2477 Generate forward declaration if needed and mark type as visited.
2478 (print_ada_declaration): Call dump_nested_types if not already done.
2479 Mark types as visited.
2480
1890bccc
JM
24812010-08-03 Joseph Myers <joseph@codesourcery.com>
2482
2483 * c.opt (-print-pch-checksum): Remove option.
2484 * c-opts.c (c_common_handle_option): Don't handle
2485 OPT_print_pch_checksum.
2486
5f20c657
JM
24872010-07-27 Joseph Myers <joseph@codesourcery.com>
2488
2489 * c-common.h (c_common_handle_option): Update prototype and return
2490 value type.
2491 * c-opts.c (c_common_handle_option): Update prototype and return
2492 value type. Update calls to handle_option and
2493 enable_warning_as_error.
2494
f551f80c
JJ
24952010-07-27 Jakub Jelinek <jakub@redhat.com>
2496
2497 PR c/45079
2498 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2499
61ff2bdc
JM
25002010-07-27 Joseph Myers <joseph@codesourcery.com>
2501
2502 * c-common.h (c_common_missing_argument): Remove.
2503 * c-opts.c (c_common_missing_argument): Remove.
2504 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2505 idirafter, imacros, include, isysroot, isystem, iquote): Add
2506 MissingArgError.
2507 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2508
7a9bf9a4
JM
25092010-07-27 Joseph Myers <joseph@codesourcery.com>
2510
2511 * c-common.h (c_common_option_lang_mask,
2512 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2513 New.
2514 (c_common_init_options): Update prototype.
2515 * c-opts.c (c_common_option_lang_mask): New.
2516 (c_common_initialize_diagnostics): Split out of
2517 c_common_init_options.
2518 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2519 New.
2520 (c_common_init_options): Update prototype. Use decoded options in
2521 search for -lang-asm.
2522
910ad8de
NF
25232010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2524
2525 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2526 * c-format.c: Likewise.
2527
718f9c0f
MLI
25282010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2529
2530 * c-common.h: Include diagnostic-core.h. Error if already
2531 included.
2532 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2533
4d451982
MLI
25342010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2535
2536 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2537 Do not include expr.h
2538 (vector_mode_valid_p): Move here.
2539
119fe915
SB
25402010-06-21 DJ Delorie <dj@redhat.com>
2541
2542 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2543 allow these pragmas anywhere.
2544
25452010-06-14 Jakub Jelinek <jakub@redhat.com>
2546
2547 PR bootstrap/44509
2548 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2549 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2550 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2551 ggc_strdup instead of xstrdup.
2552
25532010-06-10 Jakub Jelinek <jakub@redhat.com>
2554
2555 * c-cppbuiltin.c: Include cpp-id-data.h.
2556 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2557 (lazy_hex_fp_value): New function.
2558 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2559
6662d794
MLI
25602010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2561
2562 * c-gimplify.c: Do not include tree-flow.h
2563
38f8b050
JR
25642010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2565
2566 PR other/44034
2567 * c-common.c: Rename targetm member:
2568 targetm.enum_va_list -> targetm.enum_va_list_p
2569
9589f23e
AS
25702010-06-28 Anatoly Sokolov <aesok@post.ru>
2571
2572 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2573
3b06d379
SB
25742010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2575
2576 * c-cppbuiltin.c: Do not include except.h.
2577
d166d4c3
AK
25782010-06-24 Andi Kleen <ak@linux.intel.com>
2579
9faeb493
UB
2580 * c-common.c (warn_for_omitted_condop): New.
2581 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 2582
70cb8be6
JM
25832010-06-21 Joseph Myers <joseph@codesourcery.com>
2584
2585 * c.opt (lang-objc): Remove.
2586 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2587
a4c97feb
JR
25882010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2589
2590 * c-opts.c: Include "tm_p.h".
2591
6e2f1956
JM
25922010-06-20 Joseph Myers <joseph@codesourcery.com>
2593
2594 * c-common.c (parse_optimize_options): Update call to
2595 decode_options.
2596
bc87224e
NF
25972010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2598
2599 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2600 new type of types_used_by_cur_var_decl.
2601
b49cf425
JR
26022010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2603
2604 PR bootstrap/44512
2605 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2606 for C++ standard compliance.
2607
59f9c2ed
JM
26082010-06-16 Jason Merrill <jason@redhat.com>
2609
2610 * c.opt: Add -Wnoexcept.
2611
33766b66
RG
26122010-06-16 Richard Guenther <rguenther@suse.de>
2613
2614 PR c/44555
2615 * c-common.c (c_common_truthvalue_conversion): Remove
2616 premature and wrong optimization concering ADDR_EXPRs.
2617
eff7e30c
AC
26182010-06-15 Arnaud Charlet <charlet@adacore.com>
2619
2620 * c-ada-spec.c (dump_sloc): Remove column info.
2621 (is_simple_enum): New function.
2622 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2623 enum types when relevant.
2624
6312e84d
MLI
26252010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2626
9faeb493 2627 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2628 location.
2629
1cb42611
JM
26302010-06-10 Joseph Myers <joseph@codesourcery.com>
2631
2632 * c-opts.c (c_common_handle_option): Don't handle
2633 OPT_fshow_column.
2634
a9429e29
LB
26352010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2636
2637 * c-pragma.c (push_alignment): Use typed GC allocation.
2638 (handle_pragma_push_options): Likewise.
2639
2640 * c-common.c (parse_optimize_options): Likewise.
2641
2642 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2643 option.
2644
5498f011
JM
26452010-06-07 Joseph Myers <joseph@codesourcery.com>
2646
2647 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2648 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2649 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2650 flag_signed_bitfields, warn_strict_null_sentinel,
2651 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2652 flag_gen_declaration, flag_no_gnu_keywords,
2653 flag_implement_inlines, flag_implicit_templates,
2654 flag_implicit_inline_templates, flag_optional_diags,
2655 flag_elide_constructors, flag_default_inline, flag_rtti,
2656 flag_conserve_space, flag_access_control, flag_check_new,
2657 flag_new_for_scope, flag_weak, flag_working_directory,
2658 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2659 flag_enforce_eh_specs, flag_threadsafe_statics,
2660 flag_pretty_templates): Remove.
2661 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2662 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2663 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2664 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2665 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2666 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2667 flag_no_gnu_keywords, flag_implement_inlines,
2668 flag_implicit_templates, flag_implicit_inline_templates,
2669 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2670 flag_rtti, flag_conserve_space, flag_access_control,
2671 flag_check_new, flag_new_for_scope, flag_weak,
2672 flag_working_directory, flag_use_cxa_atexit,
2673 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2674 flag_threadsafe_statics, flag_pretty_templates,
2675 warn_strict_null_sentinel): Remove.
2676 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2677 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2678 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2679 fimplicit-inline-templates, fimplicit-templates,
2680 flax-vector-conversions, fms-extensions, fnil-receivers,
2681 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2682 frtti, fshort-double, fshort-enums, fshort-wchar,
2683 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2684 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2685 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2686 gen-decls, undef): Use Var.
2687 (fdefault-inline, foptional-diags): Document as doing nothing.
2688 * c-opts.c (c_common_handle_option): Remove cases for options now
2689 using Var. Mark ignored options as such.
2690
39dabefd
SB
26912010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2692
9faeb493 2693 * c-common.c: Moved to here from parent directory.
39dabefd
SB
2694 * c-common.def: Likewise.
2695 * c-common.h: Likewise.
2696 * c-cppbuiltin.c: Likewise.
2697 * c-dump.c: Likewise.
2698 * c-format.c: Likewise.
2699 * c-format.h : Likewise.
2700 * c-gimplify.c: Likewise.
2701 * c-lex.c: Likewise.
2702 * c-omp.c: Likewise.
2703 * c.opt: Likewise.
2704 * c-opts.c: Likewise.
2705 * c-pch.c: Likewise.
2706 * c-ppoutput.c: Likewise.
2707 * c-pragma.c: Likewise.
2708 * c-pragma.h: Likewise.
2709 * c-pretty-print.c: Likewise.
2710 * c-pretty-print.h: Likewise.
2711 * c-semantics.c: Likewise.
2712 * stub-objc.c: Likewise.
2713
2714 * c-common.c: Include gt-c-family-c-common.h.
2715 * c-pragma.c: Include gt-c-family-c-pragma.h.
2716\f
d1e082c2 2717Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
2718
2719Copying and distribution of this file, with or without modification,
2720are permitted in any medium without royalty provided the copyright
2721notice and this notice are preserved.