]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
c-pretty-print.h (c_pretty_printer::id_expression): Now a virtual function.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
66dfe4c4
GDR
12013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2
3 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4 virtual function.
5 (pp_c_id_expression): Remove.
6 (pp_id_expression): Adjust.
7 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
8 pp_c_id_expression. Adjust.
9 (pp_c_postfix_expression): Use pp_id_expression.
10 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
11
ca43e9d5
GDR
122013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
13
14 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
15 member function.
16 (pp_constant): Adjust.
17 (pp_c_constant): Remove.
18 * c-pretty-print.c (c_pretty_printer::constant): Rename from
19 pp_c_constant. Adjust.
20 (pp_c_constant)
21 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
22 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
23
da6ca2b5
GDR
242013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
25
26 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
27 (c_pretty_printer::c_pretty_printer): Declare.
28 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
29 c_pretty_printer_init. Adjust.
30 (print_c_tree): Do not call c_pretty_printer_init.
31 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
32
65a372f4
AC
332013-08-09 Arnaud Charlet <charlet@adacore.com>
34
35 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
36
fd9b0f32
PC
372013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
38
39 PR c++/58080
40 * c-common.c (pointer_int_sum): Add bool parameter.
41 * c-common.h (pointer_int_sum): Adjust declaration.
42
e0aec1e9
GDR
432013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
44
45 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
46 c_pretty_printer variable.
47
b066401f
GDR
482013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
49
50 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
51 (pp_base): Remove.
52 (pp_c_base): Likewise. Adjust users.
53 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
54 (pp_c_whitespace): Do not call pp_base.
55 (pp_c_left_paren): Likewise.
56 (pp_c_right_paren): Likewise.
57 (pp_c_left_brace): Likewise.
58 (pp_c_right_brace): Likewise.
59 (pp_c_left_bracket): Likewise.
60 (pp_c_right_bracket): Likewise.
61 (pp_c_dot): Likewise.
62 (pp_c_ampersand): Likewise.
63 (pp_c_star): Likewise.
64 (pp_c_arrow): Likewise.
65 (pp_c_semicolon): Likewise.
66 (pp_c_complement): Likewise.
67 (pp_c_exclamation): Likewise.
68 (pp_c_direct_declarator): Likewise.
69 (pp_c_ws_string): Likewise.
70 (pp_c_identifier): Likewise.
71 (pp_c_statement): Likewise.
72 (print_c_tree): Likewise.
73
65e5a578
ESR
742013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
75
76 PR c++/58072
77 * c-common.c (c_parse_error): Catch user-defined literal tokens and
78 provide useful error strings.
79
137a1a27
GDR
802013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
81
82 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
83 printer functions instead of pp_string or operators and punctuators.
84 (dump_generic_ada_node): Likewise.
85 * c-pretty-print.c (pp_c_type_specifier): Likewise.
86 (pp_c_relational_expression): Likewise.
87 (pp_c_logical_or_expression): Likewise.
88
07838b13
GDR
892013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
90
91 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
92 functions instead of pp_character.
93 (pp_ada_tree_identifier): Likewise.
94 (dump_ada_double_name): Likewise.
95 (dump_ada_function_declaration): Likewise.
96 (dump_ada_array_domains): Likewise.
97 (dump_template_types): Likewise.
98 (dump_generic_ada_node): Likewise.
99 (print_ada_declaration): Likewise.
100 (print_ada_struct_decl): Likewise.
101 * c-pretty-print.c (pp_c_integer_constant): Likewise.
102
433cc7b0
TT
1032013-07-23 Tom Tromey <tromey@redhat.com>
104
105 * c-common.h (enum rid) <RID_GENERIC>: New constant.
106 * c-common.c (c_common_reswords): Add _Generic.
107
688010ba
OB
1082013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
109
110 * c-common.c: Fix typos.
111 * c-common.h: Likewise.
112
2a99e5e6
LL
1132013-07-13 Lubos Lunak <l.lunak@suse.cz>
114
115 PR c++/55203
116 * c-common.c (c_common_attribute_table): Add warn_unused.
117 (handle_warn_unused_attribute): New.
118
c26302d5
JJ
1192013-07-10 Jakub Jelinek <jakub@redhat.com>
120
121 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
122 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
123
dfeadaa0
PC
1242013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
125
126 PR c++/57869
127 * c.opt: Add Wconditionally-supported.
128
6a2fa4b2
GS
1292013-07-08 Graham Stott <graham.stott@btinternet.com>
130
131 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
132 unused variables l_length and l_node.
133
40d3d530
JR
1342013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
135
136 PR c/57821
137 * c-common.c (complete_array_type): Delay folding first index
138 like other indices. When folding, check for index overflow.
139
bedc293e
MG
1402013-06-27 Marc Glisse <marc.glisse@inria.fr>
141
142 PR c++/57509
143 * c-common.h (c_build_vec_perm_expr): New complain argument.
144 * c-common.c (c_build_vec_perm_expr): Likewise.
145 Use save_expr also in C++.
146
604b2bfc
GDR
1472013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
148
149 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
150 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
151 * c-opts.c (c_common_post_options): Likewise.
152
dfeadaa0 1532013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
154
155 * array-notation-common.c (length_mismatch_in_expr): Changed the
156 parameter type's from a dynamic array to a vec_tree. Also removed
157 the size parameters.
158 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
159 the change above.
160
2ce86d2e
BI
1612013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
162
163 * c-common.h (struct cilkplus_an_parts): New structure.
164 (struct cilkplus_an_loop_parts): Likewise.
165 (cilkplus_extract_an_triplets): New prototype.
166 (fix_sec_implicit_args): Likewise.
167 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
168 (fix_sec_implicit_args): Likewise.
604b2bfc 169
07a6825b
BI
1702013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
171
172 * array-notation-common.c (find_inv_trees): Removed an unwanted
173 typecasting.
174 * c-common.h (struct inv_list::additional_tcodes): Changed type from
175 enum rid to enum tree_code.
176
08346abd
JH
1772013-06-11 Jan Hubicka <jh@suse.cz>
178
179 * c-common.c (handle_alias_ifunc_attribute): Do not set
180 DECL_EXTERNAL for weakref variables.
181 * c-pragma.c (handle_pragma_weak): Make sure aliases
182 are not declared as external.
183
d60f1706
BI
1842013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
185
186 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
187 function from c/c-array-notation.c.
188 (is_cilkplus_reduce_builtin): Likewise.
189 (find_rank): Likewise.
190 (extract_array_notation_exprs): Likewise.
191 (replace_array_notations): Likewise.
192 (find_inv_trees): Likewise.
193 (replace_inv_trees): Likewise.
194 (contains_array_notation_expr): Likewise.
195 (find_correct_array_notation_type): Likewise.
196 * c-common.h (struct inv_list): Moved this struct from the file
197 c/c-array-notation.c and added a new field called additional tcodes.
198 (length_mismatch_in_expr_p): New prototype.
199 (is_cilkplus_reduce_builtin): Likewise.
200 (find_rank): Likewise.
201 (extract_array_notation_exprs): Likewise.
202 (replace_array_notation): Likewise.
203 (find_inv_trees): Likewise.
204 (replace_inv_trees): Likewise.
205 (find_correct_array_notation_type): Likewise.
dfeadaa0 206
36536d79
BI
2072013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
208
209 * c-common.c (c_define_builtins): When cilkplus is enabled, the
210 function array_notation_init_builtins is called.
211 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
212 * c-common.def (ARRAY_NOTATION_REF): New tree.
213 * c-common.h (build_array_notation_expr): New function declaration.
214 (build_array_notation_ref): Likewise.
215 (extract_sec_implicit_index_arg): New extern declaration.
216 (is_sec_implicit_index_fn): Likewise.
217 (ARRAY_NOTATION_CHECK): New define.
218 (ARRAY_NOTATION_ARRAY): Likewise.
219 (ARRAY_NOTATION_START): Likewise.
220 (ARRAY_NOTATION_LENGTH): Likewise.
221 (ARRAY_NOTATION_STRIDE): Likewise.
222 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
223 ARRAY_NOTATION_REF.
224 (pp_c_expression): Likewise.
225 * c.opt (flag_enable_cilkplus): New flag.
226 * array-notation-common.c: New file.
227
f7716d57
JJ
2282013-05-14 Jakub Jelinek <jakub@redhat.com>
229
230 PR c++/57274
231 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
232
a5e0cd1d
MG
2332013-05-10 Marc Glisse <marc.glisse@inria.fr>
234
235 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
236 vectors.
237
f6bc1c4a
HS
2382013-05-07 Han Shen <shenhan@google.com>
239
240 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
241
3f12f6e9
SKS
2422013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
243
244 * c-common.c (check_user_alignment): Emit error for negative values.
245
61949153
PC
2462013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
247
248 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
249
e93e18e9
PC
2502013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
251
252 * c-cppbuiltin.c (c_cpp_builtins): Do not define
253 __GXX_EXPERIMENTAL_CXX1Y__.
254
44d90fe1
PC
2552013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
256 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
257
258 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
259 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
260 to simply use OPT_Wpointer_arith.
261 (c_sizeof_or_alignof_type): Likewise.
262
13f39b2e
PC
2632013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
264
265 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
266
4b84d650
JJ
2672013-04-12 Jakub Jelinek <jakub@redhat.com>
268
269 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
270 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
271 specifiers.
272
fb037b5d
SB
2732013-04-07 Steven Bosscher <steven@gcc.gnu.org>
274
275 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
276
4e856798
PC
2772013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
278
279 * c-common.c (pointer_int_sum): Remove dead code.
280
4b1baac8
RS
2812013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
282
283 PR middle-end/56524
284 * c-common.c (handle_optimize_attribute): Don't call
285 save_optabs_if_changed.
286
0b50e654
JJ
2872013-03-05 Jakub Jelinek <jakub@redhat.com>
288
289 PR middle-end/56461
290 * c-pch.c (pch_init): Free target_validity at the end.
291
48c41403
JJ
2922013-03-04 Jakub Jelinek <jakub@redhat.com>
293
294 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
295
e664c61c
KS
2962013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
297 Jakub Jelinek <jakub@redhat.com>
298
299 PR sanitizer/56454
300 * c-common.c (handle_no_sanitize_address_attribute): New function.
301 (c_common_attribute_table): Add no_sanitize_address attribute.
302 (handle_no_address_safety_analysis_attribute): Add
303 no_sanitize_address attribute, not no_address_safety_analysis
304 attribute.
305
a475fd3d 3062013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
307
308 PR target/52555
309 * c-common.c (handle_optimize_attribute): Call
310 save_optabs_if_changed.
311
f6007d99
JJ
3122013-02-18 Jakub Jelinek <jakub@redhat.com>
313 Steven Bosscher <steven@gcc.gnu.org>
314
315 PR pch/54117
316 * c-opts.c (c_common_post_options): If debug info is enabled
317 and non-dwarf*, refuse to load PCH files and when writing PCH
318 file warn.
319
cf35e2b1
JJ
3202013-02-05 Jakub Jelinek <jakub@redhat.com>
321
322 PR middle-end/56167
323 * c-common.c (handle_error_attribute): Fix condition.
324
32887460
JJ
3252013-01-30 Jakub Jelinek <jakub@redhat.com>
326
327 PR c++/55742
328 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
329
5af057d8
JM
3302013-01-18 Jason Merrill <jason@redhat.com>
331
332 PR target/54908
333 * c.opt (-fextern-tls-init): New.
334 * c-opts.c (c_common_post_options): Handle it.
335
cc83c823
JJ
3362013-01-09 Jakub Jelinek <jakub@redhat.com>
337
338 PR c/48418
339 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
340 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
341 and is either negative or bigger or equal to type precision
342 of the first operand.
343
a859517f
MP
3442012-12-03 Marek Polacek <polacek@redhat.com>
345
346 PR c/55570
347 * c-common.c (check_user_alignment): Swap order of tests,
348 check TREE_CODE first.
349
2d7aa578
ESR
3502012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
351
352 PR c++/52654
353 * c-common.h (overflow_type): New enum.
354 (build_userdef_literal): Add overflow_type argument.
355 (tree_userdef_literal): Add overflow_type.
356 (USERDEF_LITERAL_OVERFLOW): New access macro.
357 * c-common.c (build_userdef_literal): Add overflow_type
358 argument.
359 * c-lex.c (c_lex_with_flags): Add overflow_type to
360 build_userdef_literal calls.
361 (interpret_integer, interpret_float): Add overflow_type argument.
362
cc3c4f62
RB
3632012-11-28 Richard Biener <rguenther@suse.de>
364
365 PR c/35634
366 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
367 here and use a type with proper overflow behavior for types that would
368 need to be promoted for the arithmetic.
369
77bc5132
JJ
3702012-11-23 Jakub Jelinek <jakub@redhat.com>
371
372 PR sanitizer/55435
373 * c-common.c (handle_no_address_safety_analysis_attribute): New
374 function.
375 (c_common_attribute_table): Add no_address_safety_analysis.
376
5dc99c46
SB
3772012-11-16 Simon Baldwin <simonb@google.com>
378
379 * c.opt: Add f[no-]canonical-system-headers.
380 * c-opts.c (c_common_handle_option): Handle
381 OPT_fcanonical_system_headers.
382
a4a0016d
ESR
3832012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
384
385 PR c++/54413
386 * c-opts.c (c_common_handle_option): Set new flags.
387 * c.opt: Describe new flags.
388
7dbb85a7
JM
3892012-11-09 Jason Merrill <jason@redhat.com>
390
391 * c.opt (Wabi-tag): New.
392
ad7bac31
AK
3932012-11-09 Andi Kleen <ak@linux.intel.com>
394
395 PR 55139
396 * c-common.c (get_atomic_generic_size): Mask with
397 MEMMODEL_MASK
398
7332899a
MLI
3992012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
400
401 PR c/53063
402 * c.opt (Wformat): Make it Alias Wformat=1.
403 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
404 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
405 LangEnabledBy.
406 (Wformat=): RejectNegative. Use LangEnabledBy.
407 (Wnonnull): Use LangEnabledBy.
408 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
409 * c-format.c (set_Wformat): Delete.
410 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
411 (maybe_read_dollar_number): Likewise.
412 (avoid_dollar_number): Likewise.
413 (finish_dollar_format_checking): Likewise.
414 (check_format_info): Likewise.
415 (check_format_info_main): Likewise.
416 (check_format_types): Likewise.
417 (format_type_warning): Likewise.
418 * c-common.c (int): Likewise.
419 (check_function_sentinel): Likewise.
420 * c-common.h (warn_format,set_Wformat): Do not declare here.
421
34a180a6
MLI
4222012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
423
424 PR c/53063
425 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
426 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
427 Use LangEnabledBy.
428 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
429 common.opt.
430 (Wvariadic-macros): Init(1).
431 * c-opts.c (c_common_handle_option): Do not handle them
432 explicitly.
433 (c_common_post_options): Likewise.
434 (sanitize_cpp_opts): warn_unused_macros is now
435 cpp_warn_unused_macros.
436 (push_command_line_include): Likewise.
437 * c-common.c (warn_unknown_pragmas): Do not define.
438 * c-common.h (warn_unknown_pragmas): Do not declare.
439
3f46d6a5
MLI
4402012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
441
442 PR c/51294
443 * c-common.c (conversion_warning): Handle conditional expressions.
444
880661a4
JW
4452012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
446
447 PR c++/54930
448 * c.opt (Wreturn_local_addr): Define new option.
449
4514a96b
JM
4502012-10-25 Jason Merrill <jason@redhat.com>
451
f14edc1a
JM
452 * c.opt (Wvirtual-move-assign): New.
453
4514a96b
JM
454 * c.opt (Winherited-variadic-ctor): New.
455
93100c6b
MG
4562012-10-25 Marc Glisse <marc.glisse@inria.fr>
457
458 PR c++/54427
459 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
460
1efcb8c6
JM
4612012-10-23 Joseph Myers <joseph@codesourcery.com>
462
463 * c-common.h (pch_cpp_save_state): Declare.
464 * c-target.def (c_preinclude): New hook.
465 * c-opts.c (done_preinclude): New.
466 (push_command_line_include): Handle default preincluded header.
467 (cb_file_change): Call pch_cpp_save_state when calling
468 push_command_line_include.
469 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
470 (pch_cpp_save_state): New.
471 (pch_init): Call pch_cpp_save_state conditionally, instead of
472 calling cpp_save_state.
473
4a0ae68e
MLI
4742012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
475
476 PR c/53063
477 PR c/40989
478 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
479 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
480 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
481 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
482 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
483 * c-opts.c (c_common_handle_option): Remove explicit handling from
484 here.
485 (c_common_post_options): Likewise.
486
67e4210b
EB
4872012-10-18 Eric Botcazou <ebotcazou@adacore.com>
488
489 * c-ada-spec.c (LOCATION_COL): Delete.
490 (compare_location): New function.
491 (compare_node): Use it.
492 (compare_comment): Likewise.
493
65d4f2cd
MLI
4942012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
495
496 PR c/53063
497 PR c/40989
498 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
499 * c-opts.c (c_common_handle_option): Do not set them here. Add
500 comment.
501 (c_common_post_options): Likewise.
502
909881cb
EB
5032012-10-16 Eric Botcazou <ebotcazou@adacore.com>
504
505 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
506 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
507 Remove POINTER_TYPE handling, add large unsigned handling and use
508 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
509
3a785c97
JJ
5102012-10-12 Jakub Jelinek <jakub@redhat.com>
511
512 PR c/54381
513 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
514 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
515 locs and array of 3 trees instead of just single loc and single
516 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
517 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
518 For *cmp* builtins that take two sources strings report warnings
519 about first and second source, not about destination and source.
520
5e54f81d
MG
5212012-10-12 Marc Glisse <marc.glisse@inria.fr>
522
523 PR c++/53055
524 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
525
f5b02f1e
EB
5262012-10-11 Eric Botcazou <ebotcazou@adacore.com>
527
528 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
529 declaring something coming from another file.
530
b46dbc6c
AC
5312012-10-10 Arnaud Charlet <charlet@adacore.com>
532
f5b02f1e 533 PR ada/54845
b46dbc6c
AC
534 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
535
5d9de0d0
PC
5362012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
537
538 PR c++/54194
539 * c-common.c (warn_about_parentheses): Add location_t parameter;
540 use EXPR_LOC_OR_LOC.
541 * c-common.h: Update declaration.
542
a212e43f
MG
5432012-10-09 Marc Glisse <marc.glisse@inria.fr>
544
545 PR c++/54427
546 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
547 more operations. Make error messages optional.
548 * c-common.h (enum stv_conv): Moved from c-typeck.c.
549 (scalar_to_vector): Declare.
550
b1db7f91
JM
5512012-10-08 Jason Merrill <jason@redhat.com>
552
553 * c-common.c (c_common_reswords): Add thread_local.
554
e28d52cf
DS
5552012-10-08 Dodji Seketeli <dodji@redhat.com>
556
557 PR c++/53528 C++11 attribute support
558 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
559 new functions.
560 * c-common.c (check_cxx_fundamental_alignment_constraints): New
561 static function.
562 (handle_aligned_attribute): In choose strictest alignment
563 among many. Use new check_cxx_fundamental_alignment_constraints.
564 (handle_transparent_union_attribute): In c++11 attribute syntax,
565 don't look through typedefs.
566
3b78de56
AC
5672012-10-04 Arnaud Charlet <charlet@adacore.com>
568
569 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
570 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
571 out of dumpfile.h.
572
6040bb5f
DC
5732012-09-25 Dehao Chen <dehao@google.com>
574
575 PR middle-end/54645
3b78de56 576 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
577 map when read in the pch.
578
0b07a57e
AC
5792012-09-18 Arnaud Charlet <charlet@adacore.com>
580
581 * c-ada-spec.c: Style fixes.
582
da5182be
TQ
5832012-09-18 Thomas Quinot <quinot@adacore.com>
584
585 * c.opt (-fada-spec-parent): Define new command line switch.
586 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
587 is specified, generate binding spec as a child of the specified unit.
588
0ccb505d
PC
5892012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
590 Manuel López-Ibáñez <manu@gcc.gnu.org>
591
592 PR c++/53210
593 * c.opt ([Winit-self]): Enabled by -Wall in C++.
594
c583af79
AC
5952012-08-23 Arnaud Charlet <charlet@adacore.com>
596
597 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
598 for pointers, and add missing Convention C pragma.
599 (print_ada_struct_decl): Add missing aliased keyword.
600 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
601
1a4049e7
JJ
6022012-08-17 Jakub Jelinek <jakub@redhat.com>
603
604 * c-common.c (sizeof_pointer_memaccess_warning): New function.
605 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
606 * c-opts.c (c_common_handle_option): Enable it for -Wall.
607 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
608 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
609
70b5e7dc
RG
6102012-08-10 Richard Guenther <rguenther@suse.de>
611
612 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
613
f8923f7e
SB
6142012-08-07 Steven Bosscher <steven@gcc.gnu.org>
615
616 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
617 instead of separate pp_newline and pp_flush.
618 (print_c_tree): Likewise.
619
e45abe1f
RH
6202012-07-26 Richard Henderson <rth@redhat.com>
621
622 * c-common.c (handle_hot_attribute): Allow labels.
623 (handle_cold_attribute): Likewise.
624
332f1d24
JJ
6252012-07-20 Jakub Jelinek <jakub@redhat.com>
626
627 PR c++/28656
628 * c-common.c (check_function_nonnull): Handle multiple nonnull
629 attributes properly.
630
7ee2468b
SB
6312012-07-16 Steven Bosscher <steven@gcc.gnu.org>
632
633 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
634 * c-ada-spec.c: Likewise.
635 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
636
ee7b28eb
SB
6372012-07-14 Steven Bosscher <steven@gcc.gnu.org>
638
639 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
640 Remove code conditional on it.
641
6bdf3519
SB
6422012-07-11 Steven Bosscher <steven@gcc.gnu.org>
643
644 * c-gimplify.c: Do not include basic-block.h.
645 * c-common.c: Do not include linfuncs.h.
646
532aafad
SB
6472012-07-08 Steven Bosscher <steven@gcc.gnu.org>
648
649 * c-common.h: Include tree.h.
650
8d0d1915
JM
6512012-07-02 Jason Merrill <jason@redhat.com>
652
653 PR c++/53524
654 * c-common.c (get_priority): Call default_conversion.
655
fbc873ad
UB
6562012-07-01 Uros Bizjak <ubizjak@gmail.com>
657
658 * c-pch.c (c_common_write_pch): Remove unused variables.
659
d4a10d0a
SB
6602012-06-29 Steven Bosscher <steven@gcc.gnu.org>
661
662 * cppspec.c: Moved from gcc/ to here.
663
6f3a2e23
KT
6642012-06-27 Kai Tietz <ktietz@redhat.com>
665
666 PR preprocessor/37215
667 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
668
8ca92d04
SB
6692012-06-21 Steven Bosscher <steven@gcc.gnu.org>
670
671 * c-common.h (c_common_print_pch_checksum): Remove.
672 * c-pch.c: Do not include output.h.
673 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
674 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
675 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
676 (struct c_pch_header): Remove.
677 (get_ident): Update gpch version.
678 (pch_init): Do not print executable_checksum to asm_out_file.
679 Do not fail if there is no asm_out_file to read back from. Set
680 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
681 (c_common_write_pch): Verify that nothing was written to asm_out_file
682 since pch_init was called. Do not write a c_pch_header, and do not
683 copy from asm_out_file to the PCH.
684 (c_common_read_pch): Do not read a c_pch_header, and do not restore
685 the content of asm_out_file from the PCH.
686 (c_common_print_pch_checksum): Remove.
687 * c-opts.c (c_common_init): Print out executable_checksum directly.
688
70f42967
SB
6892012-06-19 Steven Bosscher <steven@gcc.gnu.org>
690
691 * c-target.def (objc_declare_unresolved_class_reference,
692 objc_declare_class_definition): Add new hooks.
693
a8781821
SB
6942012-06-19 Steven Bosscher <steven@gcc.gnu.org>
695
696 * c-lex.c: Do not include output.h.
697 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
698 Remove uses of ASM_OUTPUT_IDENT.
699
9e1a8dd1
RR
7002012-06-15 Marc Glisse <marc.glisse@inria.fr>
701
702 PR c++/51033
703 * c-common.h (c_build_vec_perm_expr): Move decl here.
704 * c-common.c (c_build_vec_perm_expr): Move definition
705 here.
706
6f07a821
SB
7072012-06-06 Steven Bosscher <steven@gcc.gnu.org>
708
709 * c.opt (fconserve-space): Turn into a no-op.
710
9faeb493 7112012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
712
713 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
714 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
715 both the start and end of the function.
716
a4b7d13c
SB
7172012-06-04 Steven Bosscher <steven@gcc.gnu.org>
718
719 * c-common.c: Do not include output.h.
720 * c-pragma.c: Likewise.
721
c265f413
SA
7222012-06-04 Steven Bosscher <steven@gcc.gnu.org>
723
724 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
725 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
726 (lang_decl_name): Handle namespace decls.
727
be7a421e
SB
7282012-05-31 Steven Bosscher <steven@gcc.gnu.org>
729
730 * c-ada-spec.c: Do not include output.h.
731 * c-semantics.c: Likewise.
732
65de6659
JM
7332012-05-29 Joseph Myers <joseph@codesourcery.com>
734
735 * c-common.c: Fix typo.
736
ca5f4331
MM
7372012-05-29 Michael Matz <matz@suse.de>
738
739 * c-common.h (c_expand_decl): Remove prototype.
740
4f7f7aca
MLI
7412012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
742
743 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
744 * c-opts.c (c_common_handle_option): Remove code handling
745 warn_missing_braces.
746
4a792f9b
PC
7472012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
748
749 PR c++/25137
750 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
751 -Wmissing_braces.
752
650dc14a
DS
7532012-05-22 Dodji Seketeli <dodji@redhat.com>
754
755 PR c++/53322
756 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
757
9b095bf1
MLI
7582012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
759
760 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
761 * c-opts.c (c_common_handle_option): Do not handle explicitly
762 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
763
0b2c4be5
DS
7642012-05-16 Dodji Seketeli <dodji@redhat.com>
765
766 PR preprocessor/7263
767 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
768 to cpp_classify_number. For diagnostics, use the precise location
769 instead of the global input_location.
770
a1bde5af
PC
7712012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
772
d02924ef 773 PR c++/11856
a1bde5af
PC
774 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
775
d1ede5f4
BS
7762012-05-14 Bernd Schmidt <bernds@codesourcery.com>
777
a1bde5af 778 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 779
f2bc201f
MLI
7802012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
781
782 PR 53063
783 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
784 Wreorder): Use LangEnabledBy.
785 * c-opts.c (c_common_handle_option): Do not enable them
786 explicitly. Call lang-specific generated functions.
787 (c_common_post_options): Do not set them here.
788
95744782
MLI
7892012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
790
791 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
792 Wmissing-field-initializers,Wmissing-parameter-type,
793 Wold-style-declaration,Woverride-init): Use EnabledBy.
794 * c-opts.c (c_common_post_options): Do not set here explicitly.
795
7d5a5747
MLI
7962012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
797
798 PR 53063
799 * c-opts.c (c_common_handle_option): Use handle_generated_option
800 to enable sub-options.
801
5a3c9cf2
PC
8022012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
803
804 PR c++/53158
805 * c-common.c (warnings_for_convert_and_check): Use warning_at.
806
3ac8781c
RG
8072012-05-10 Richard Guenther <rguenther@suse.de>
808
809 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
810 adjust commentary about TYPE_IS_SIZETYPE types.
811
1e537948
MLI
8122012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
813
814 PR c++/53261
815 * c-common.c (warn_logical_operator): Check that argument of
816 integer_zerop is not NULL.
817
f2c4a785
MLI
8182012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
819
820 PR c/43772
821 * c-common.c (warn_logical_operator): Do not warn if either side
822 is already true or false.
823
50f305ca
MLI
8242012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
825
826 PR c/51712
827 * c-common.c (expr_original_type): New.
828 (shorten_compare): Do not warn for enumeration types.
829
0c3641b0
MLI
8302012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
831
832 * c.opt (fpermissive): Add Var(flag_permissive).
833
7edaa4d2
MG
8342012-04-30 Marc Glisse <marc.glisse@inria.fr>
835
836 PR c++/51033
837 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
838 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
839
b9c8da34
DS
8402012-04-30 Dodji Seketeli <dodji@redhat.com>
841
842 Add -Wvarargs option
843 * c.opt (Wvarargs): Define new option.
844
e6c69da0
MLI
8452012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
846
847 * c-common.c (check_function_arguments): Replace
848 Wmissing-format-attribute with Wsuggest-attribute=format.
849
90137d8f
MLI
8502012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
851
852 * c.opt (Wsuggest-attribute=format): New. Alias of
853 Wmissing-format-attribute.
854 * c-format.c (decode_format_type): Replace
855 Wmissing-format-attribute with Wsuggest-attribute=format.
856 (check_function_format): Likewise.
857
9faeb493 8582012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
859
860 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
861 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
862 * c.opt: Add Wliteral-suffix.
863
c1771a20
MLI
8642012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
865
866 PR c/44774
867 * c.opt (Wpedantic): New.
868 (pedantic): Alias Wpedantic.
869 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
870 (c_common_post_options): Likewise.
871 (sanitize_cpp_opts): Likewise.
872 * c-lex.c (interpret_float): Likewise.
873 * c-format.c (check_format_types): Likewise.
874 * c-common.c (pointer_int_sum): Likewise.
875 (c_sizeof_or_alignof_type): Likewise.
876 (c_add_case_label): Likewise.
877 (c_do_switch_warnings): Likewise.
878 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
879
04b391c1
JM
8802012-04-15 Jason Merrill <jason@redhat.com>
881
882 PR c++/52818
883 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
884 (C_STD_NAME): Distinguish between C++98 and C++11.
885
ac868f29
EB
8862012-04-11 Eric Botcazou <ebotcazou@adacore.com>
887
888 PR target/52624
889 * c-common.h (uint16_type_node): Rename into...
890 (c_uint16_type_node): ...this.
891 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
892 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
893
fd4116f4
MLI
8942012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
895
896 * c-common.c (warn_if_unused_value): Move definition to here.
897 * c-common.h (warn_if_unused_value): Move declaration to here.
898
573ac65e
WB
8992012-03-23 William Bader <williambader@hotmail.com>
900
901 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
902
552b8185
JM
9032012-03-20 Jason Merrill <jason@redhat.com>
904
905 * c-common.h (enum cxx_dialect): Add cxx1y.
906 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
907 test.
908 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
909 * c-opts.c (c_common_post_options): Likewise.
910 (set_std_cxx1y): New.
911 (c_common_handle_option): Call it.
912 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
913
04398fa8
PC
9142012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
915
916 PR c++/14710
917 * c.opt ([Wuseless-cast]): Add.
918
d2a12ae7
RG
9192012-03-16 Richard Guenther <rguenther@suse.de>
920
921 * c-pretty-print.c (pp_c_initializer_list): Adjust.
922
a12bf402
MLI
9232012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
924
925 PR c++/44783
926 * c.opt (ftemplate-backtrace-limit) Add.
927
5c30094f
RO
9282012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
929
930 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
931 handling.
932 * c-pragma.c (handle_pragma_extern_prefix): Remove.
933 (init_pragma): Don't register extern_prefix.
934
21fa2faf
RG
9352012-03-12 Richard Guenther <rguenther@suse.de>
936
937 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
938 (builtin_type_for_size): Likewise.
939
e3793c6f
JJ
9402012-02-13 Jakub Jelinek <jakub@redhat.com>
941
942 PR c++/52215
943 * c-common.c (sync_resolve_params): Don't decide whether to convert
944 or not based on TYPE_SIZE comparison, convert whenever arg_type
945 is unsigned INTEGER_TYPE.
946
93286335
PC
9472012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
948
949 PR c/52118
950 * c.opt ([Wunused-local-typedefs]): Fix description.
951
7a421706
MS
9522012-01-24 Mike Stump <mikestump@comcast.net>
953
954 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
955 exactly.
956
ba9b1f11
RG
9572012-01-18 Richard Guenther <rguenther@suse.de>
958
959 * c-opts.c (c_common_post_options): Reset LTO flags if
960 we are about to generate a PCH.
961
465406be
PC
9622012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
963
964 PR c++/51777
965 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
966 use pp_unsigned_wide_integer.
967
aee15221
RG
9682012-01-10 Richard Guenther <rguenther@suse.de>
969
970 PR middle-end/51806
971 * c-opts.c (c_common_handle_option): Move -Werror handling
972 to language independent code.
973
5720c0dc
RG
9742012-01-05 Richard Guenther <rguenther@suse.de>
975
976 PR middle-end/51764
977 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
978 from common.opt.
979
73ac190a
PC
9802011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
981
982 PR c++/51316
983 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
984 of array types with an unknown bound.
985
48b0b196
JM
9862011-12-20 Joseph Myers <joseph@codesourcery.com>
987
988 * c-common.c (flag_isoc99): Update comment to refer to C11.
989 (flag_isoc1x): Change to flag_isoc11.
990 * c-common.h (flag_isoc99): Update comment to refer to C11.
991 (flag_isoc1x): Change to flag_isoc11.
992 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
993 C11.
994 * c-opts.c (set_std_c1x): Change to set_std_c11.
995 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
996 Call set_std_c11.
997 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
998 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
999 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1000 standard.
1001 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1002 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1003 (std=gnu1x): Make alias of std=gnu11.
1004
d58d6eb5
JM
10052011-12-19 Jason Merrill <jason@redhat.com>
1006
1007 PR c++/51228
1008 * c-common.c (handle_transparent_union_attribute): Check the first
1009 field if the type is complete.
1010
b3908fcc
JW
10112011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1012
1013 PR libstdc++/51365
1014 * c-common.c (RID_IS_FINAL): Add.
1015 * c-common.h (RID_IS_FINAL): Add.
1016
fea3ca91
IS
10172011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1018
1019 * c.opt (fgnu-runtime): Provide full description.
1020 (fnext-runtime): Likewise.
1021 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1022
62bad7cd
AM
10232011-11-28 Andrew MacLeod <amacleod@redhat.com>
1024
1025 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1026 predefines in one place. Add LOCK_FREE predefines.
1027 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1028 new func.
1029
c466c4ff
AM
10302011-11-24 Andrew MacLeod <amacleod@redhat.com>
1031
1032 PR c/51256
9faeb493 1033 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1034 conditions
9faeb493
UB
1035 (resolve_overloaded_atomic_exchange,
1036 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1037 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1038 error_mark_node for error conditions.
9faeb493 1039
a5952633
RG
10402011-11-08 Richard Guenther <rguenther@suse.de>
1041
1042 PR middle-end/51010
1043 c-family/
1044
0a35513e
AH
10452011-11-07 Richard Henderson <rth@redhat.com>
1046 Aldy Hernandez <aldyh@redhat.com>
1047 Torvald Riegel <triegel@redhat.com>
1048
1049 Merged from transactional-memory.
1050
1051 * c-common.c (handle_tm_wrap_attribute,
1052 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1053 (struct c_common_reswords): Added __transaction* keywords.
1054 (struct c_common_attribute_table): Added transaction* and tm_regparm
1055 attributes.
1056 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1057 masks.
1058 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1059 find_tm_attribute): Declare.
1060
6d87092d
JM
10612011-11-07 Jason Merrill <jason@redhat.com>
1062
1063 PR c++/35688
1064 * c-common.c, c-common.h: Revert yesterday's changes.
1065
8e7860a1
JM
10662011-11-06 Jason Merrill <jason@redhat.com>
1067
1068 PR c++/35688
1069 * c-common.c (decl_has_visibility_attr): Split out from...
1070 (c_determine_visibility): ...here.
1071 * c-common.h: Declare it.
1072
d19fa6b5
JM
10732011-11-06 Joseph Myers <joseph@codesourcery.com>
1074
1075 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1076 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1077 type.
1078 (check_user_alignment): New. Split out of
1079 handle_aligned_attribute. Disallow integer constants with
1080 noninteger types. Conditionally allow zero.
1081 (handle_aligned_attribute): Use check_user_alignment.
1082 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1083
86951993
AM
10842011-11-06 Andrew MacLeod <amacleod@redhat.com>
1085 Richard Henderson <rth@redhat.com>
1086
1087 Merged from cxx-mem-model.
1088
1089 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1090 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1091 parameters that are the same type size.
1092 (get_atomic_generic_size): New. Find size of generic
1093 atomic function parameters and do typechecking.
1094 (add_atomic_size_parameter): New. Insert size into parameter list.
1095 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1096 either __atomic_exchange_n or external library call.
9faeb493 1097 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1098 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1099 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1100 __atomic_load_n or an external library call.
1101 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1102 __atomic_store_n or an external library call.
1103 (resolve_overloaded_builtin): Handle new __atomic builtins.
1104
cf9e9959
EB
11052011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1106
1107 PR c++/50608
1108 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1109 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1110 <INDIRECT_REF>: Return the argument.
1111 <ARRAY_REF>: Remove special code for negative offset.
1112 Call fold_build_pointer_plus instead of size_binop.
1113 (fold_offsetof): Remove STOP_REF argument and adjust.
1114 * c-common.h (fold_offsetof_1): Declare.
1115 (fold_offsetof): Remove STOP_REF argument.
1116
25339f10
JM
11172011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1118
1119 PR c++/50810
1120 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1121 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1122 Wnarrowing for C++0x and C++98.
1123 * c.opt ([Wnarrowing]): Update.
1124
89401152
PC
11252011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1126
1127 PR c++/44277
1128 * c.opt: Add Wzero-as-null-pointer-constant.
1129
97e3ad20
JM
11302011-10-31 Jason Merrill <jason@redhat.com>
1131
15694fdd
JM
1132 * c.opt (-fdeduce-init-list): Off by default.
1133
97e3ad20
JM
1134 PR c++/50920
1135 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1136 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1137 and -Wc++11-compat.
1138 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1139
fb9120e3
RAV
11402011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1141
1142 PR c++/30066
1143 * c.opt (fvisibility-inlines-hidden): Description change.
1144
3ce4f9e4
ESR
11452011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1146
1147 Implement C++11 user-defined literals.
1148 * c-common.c (build_userdef_literal): New.
1149 * c-common.def: New tree code.
1150 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1151 * c-lex.c (interpret_float): Add suffix parm.
1152 (c_lex_with_flags): Build literal tokens.
1153
5f53c243
PC
11542011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1155
1156 PR c++/50841
1157 Revert:
1158 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1159
1160 PR c++/50810
1161 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1162 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1163 Wnarrowing for C++0x and C++98.
1164 * c.opt ([Wnarrowing]): Update.
1165
263734e1
PC
11662011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1167
1168 PR c++/50810
1169 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1170 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1171 Wnarrowing for C++0x and C++98.
1172 * c.opt ([Wnarrowing]): Update.
1173
d2e312d7
PC
11742011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1175
1176 PR c++/45385
1177 * c-common.c (conversion_warning): Remove code looking for
1178 artificial operands.
1179
d17687f6
DS
11802011-10-18 Dodji Seketeli <dodji@redhat.com>
1181
1182 PR bootstrap/50760
1183 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1184 !NO_IMPLICIT_EXTERN_C.
d17687f6 1185
fc8396e9
PC
11862011-10-17 Michael Spertus <mike_spertus@symantec.com>
1187
1188 * c-common.c (c_common_reswords): Add __bases,
1189 __direct_bases.
1190 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1191
11922011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1193
1194 PR c++/50757
1195 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1196
847e697a
TT
11972011-10-15 Tom Tromey <tromey@redhat.com>
1198 Dodji Seketeli <dodji@redhat.com>
1199
1200 * c.opt (fdebug-cpp): New option.
1201 * c-opts.c (c_common_handle_option): Handle the option.
1202 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1203 output stream in parameter. Factorized from ...
1204 (maybe_print_line): ... this. Dump location debug information when
1205 -fdebug-cpp is in effect.
1206 (print_line_1): New static function. Takes an output stream in
1207 parameter. Factorized from ...
1208 (print_line): ... here. Dump location information when -fdebug-cpp
1209 is in effect.
1210 (scan_translation_unit): Dump location information when
1211 -fdebug-cpp is in effect.
1212
92582b75
TT
12132011-10-15 Tom Tromey <tromey@redhat.com>
1214 Dodji Seketeli <dodji@redhat.com>
1215
1216 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1217 without argument.
1218 * c-opts.c (c_common_handle_option)<case
1219 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1220 cases. Handle -ftrack-macro-expansion with and without argument.
1221
46427374
TT
12222011-10-15 Tom Tromey <tromey@redhat.com>
1223 Dodji Seketeli <dodji@redhat.com>
1224
1225 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1226 (print_line, cb_define, do_line_change): Adjust to avoid touching
1227 the internals of struct line_map. Use the public API instead.
1228 * c-pch.c (c_common_read_pch): Likewise.
1229 * c-lex.c (fe_file_change): Likewise.
1230
fc8396e9
PC
12312011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1232
1233 PR c++/17212
1234 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1235
12362011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1237
1238 PR c++/33067
1239 * c-pretty-print.c (pp_c_floating_constant): Output
1240 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1241
e79983f4
MM
12422011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1243
1244 * c-common.c (def_builtin_1): Delete old interface with two
1245 parallel arrays to hold standard builtin declarations, and replace
1246 it with a function based interface that can support creating
1247 builtins on the fly in the future. Change all uses, and poison
1248 the old names. Make sure 0 is not a legitimate builtin index.
1249 * c-omp.c (c_finish_omp_barrier): Ditto.
1250 (c_finish_omp_taskwait): Ditto.
1251 (c_finish_omp_flush): Ditto.
1252
6637388f
TG
12532011-10-11 Tristan Gingold <gingold@adacore.com>
1254
1255 * c.opt: (fallow-parameterless-variadic-functions): New.
1256
3797cb21
DS
12572011-09-08 Dodji Seketeli <dodji@redhat.com>
1258
1259 PR c++/33255 - Support -Wunused-local-typedefs warning
1260 * c-common.h (struct c_language_function::local_typedefs): New
1261 field.
9faeb493
UB
1262 (record_locally_defined_typedef, maybe_record_typedef_use)
1263 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1264 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1265 (maybe_record_typedef_use)
1266 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1267 * c.opt: Declare new -Wunused-local-typedefs flag.
1268
693ddb1b
EB
12692011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1270
1271 PR middle-end/50266
1272 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1273 computations.
1274
830c740f
RG
12752011-09-05 Richard Guenther <rguenther@suse.de>
1276
1277 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1278 of integer_minus_one_node for empty array upper bounds.
1279
892a371f
DS
12802011-08-28 Dodji Seketeli <dodji@redhat.com>
1281
1282 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1283 it's the first time it's being called on this main TU.
1284
0e3fdb48
RB
12852011-08-24 Richard Guenther <rguenther@suse.de>
1286
1287 PR c/49396
1288 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1289
12902011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1291
1292 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1293 defined in cpp_init_builtins and c_cpp_builtins.
1294
d4a83c10
JM
12952011-08-19 Joseph Myers <joseph@codesourcery.com>
1296
1297 * c-common.c (c_common_reswords): Add __builtin_complex.
1298 * c-common.h (RID_BUILTIN_COMPLEX): New.
1299
bbceee64
JM
13002011-08-18 Joseph Myers <joseph@codesourcery.com>
1301
1302 * c-common.c (c_common_reswords): Add _Noreturn.
1303 (keyword_is_function_specifier): Handle RID_NORETURN.
1304 * c-common.h (RID_NORETURN): New.
1305
0e3a99ae
AS
13062011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1307
1308 * c-common.c (unsafe_conversion_p): New function. Check if it is
1309 unsafe to convert an expression to the type.
1310 (conversion_warning): Adjust, use unsafe_conversion_p.
1311 * c-common.h (unsafe_conversion_p): New function declaration.
1312
20906c66
JJ
13132011-08-02 Jakub Jelinek <jakub@redhat.com>
1314
1315 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1316 (c_finish_omp_taskyield): New prototype.
1317 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1318 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1319 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1320 or RHS1 have side-effects, evaluate those too in the right spot,
1321 if it is a decl and LHS is also a decl, error out if they
1322 aren't the same.
1323 (c_finish_omp_taskyield): New function.
1324 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1325 * c-pragma.c (omp_pragmas): Add taskyield.
1326 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1327 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1328 PRAGMA_OMP_CLAUSE_MERGEABLE.
1329
770e5a2e
DS
13302011-07-25 Dodji Seketeli <dodji@redhat.com>
1331
1332 * c-common.h (set_underlying_type): Remove parm name from
1333 declaration.
1334
1baae426
RG
13352011-07-25 Romain Geissler <romain.geissler@gmail.com>
1336
1337 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1338
fcb21722
JM
13392011-07-22 Jason Merrill <jason@redhat.com>
1340
76f86d00
JM
1341 PR c++/49793
1342 * c.opt (Wnarrowing): New.
1343
3a636414
JM
1344 PR c++/30112
1345 * c-common.h: Declare c_linkage_bindings.
1346 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1347
fcb21722
JM
1348 PR c++/49813
1349 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1350 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1351 as flag_isoc99 for 'restrict'.
1352 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1353
02614448
ILT
13542011-07-21 Ian Lance Taylor <iant@google.com>
1355
1356 PR middle-end/49705
1357 * c-common.c (c_disable_warnings): New static function.
1358 (c_enable_warnings): New static function.
1359 (c_fully_fold_internal): Change local unused_p to bool. Call
1360 c_disable_warnings and c_enable_warnings rather than change
1361 c_inhibit_evaluation_warnings.
1362
34429675
JM
13632011-07-20 Jason Merrill <jason@redhat.com>
1364
1365 PR c++/6709 (DR 743)
1366 PR c++/42603 (DR 950)
1367 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1368 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1369 (CPP_DECLTYPE): New.
1370 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1371
5d49b6a7
RG
13722011-07-19 Richard Guenther <rguenther@suse.de>
1373
1374 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1375 * c-omp.c (c_finish_omp_for): Likewise.
1376
e84a58ff
EB
13772011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1378
1379 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1380 body on the next line.
1381
329af3c7
JM
13822011-07-08 Jason Merrill <jason@redhat.com>
1383
4063e61b
JM
1384 PR c++/45437
1385 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1386
329af3c7
JM
1387 PR c++/49673
1388 * c-common.c (c_apply_type_quals_to_decl): Don't check
1389 TYPE_NEEDS_CONSTRUCTING.
1390
1a072294
RG
13912011-07-06 Richard Guenther <rguenther@suse.de>
1392
1393 * c-common.c (c_common_nodes_and_builtins):
1394 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1395
fce5dddd
RG
13962011-07-05 Richard Guenther <rguenther@suse.de>
1397
1398 * c-common.c (c_common_nodes_and_builtins): Build all common
1399 tree nodes first.
1400
45d439ac
JJ
14012011-06-27 Jakub Jelinek <jakub@redhat.com>
1402
56300785
JJ
1403 * c-common.h (c_tree_chain_next): New static inline function.
1404
45d439ac
JJ
1405 * c-common.c (check_builtin_function_arguments): Handle
1406 BUILT_IN_ASSUME_ALIGNED.
1407
e0a8ecf2
AM
14082011-06-21 Andrew MacLeod <amacleod@redhat.com>
1409
1410 * c-common.c: Add sync_ or SYNC__ to builtin names.
1411 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
1412
14132011-06-20 Pierre Vittet <piervit@pvittet.com>
1414
1415 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1416 handler.
1417 (gen_pragma_handler): New union.
1418 (internal_pragma_handler): New type.
1419 (c_register_pragma_with_data)
1420 (c_register_pragma_with_expansion_and_data): New functions.
1421
1422 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1423 (c_register_pragma, c_register_pragma_with_expansion)
1424 (c_invoke_pragma_handler): Changed to work with
1425 internal_pragma_handler.
1426 (c_register_pragma_with_data)
1427 (c_register_pragma_with_expansion_and_data): New functions.
1428
677f3fa8
JM
14292011-06-14 Joseph Myers <joseph@codesourcery.com>
1430
1431 * c-common.c: Include common/common-target.h.
1432 (handle_section_attribute): Use
1433 targetm_common.have_named_sections.
1434 * c-cppbuiltin.c: Include common/common-target.h.
1435 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1436
d7fc8c14
RG
14372011-06-10 Richard Guenther <rguenther@suse.de>
1438
1439 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1440 to print a IDENTIFIER_NODE.
1441
10e48e39
RO
14422011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1443 Joseph Myers <joseph@codesourcery.com>
1444
1445 * c.opt (fbuilding-libgcc): New option.
1446 * c-cppbuiltin.c (c_cpp_builtins): Define
1447 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1448
6976ae51
JM
14492011-06-07 Jason Merrill <jason@redhat.com>
1450
3ff60975
JM
1451 * c-common.c (max_tinst_depth): Lower default to 900.
1452
6976ae51
JM
1453 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1454
009db074
RG
14552011-06-07 Richard Guenther <rguenther@suse.de>
1456
1457 * c-common.c (c_common_nodes_and_builtins): Do not set
1458 size_type_node or call set_sizetype.
1459
b4592b92
DS
14602011-06-07 Dodji Seketeli <dodji@redhat.com>
1461
1462 PR debug/49130
1463 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 1464 type when using pointer comparison to compare types.
b4592b92 1465
014ab419
JW
14662011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1467
1468 * c.opt: Add -Wdelete-non-virtual-dtor.
1469 * c-opts.c (c_common_handle_option): Include it in -Wall.
1470
4f60111f
NF
14712011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1472
1473 PR bootstrap/49190
1474
1475 Revert:
1476 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1477
1478 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1479 not tree_common.
1480
4cc4f2f4
JJ
14812011-05-27 Jakub Jelinek <jakub@redhat.com>
1482
1483 PR c++/49165
1484 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1485 C++ don't call c_common_truthvalue_conversion on void type arms.
1486
38e01f9e
NF
14872011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1488
1489 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1490 (stmt_list_stack): Define.
1491 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1492 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1493
92e948a8
NF
14942011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1495
1496 * c-common.c (warning_candidate_p): Check for BLOCKs.
1497
a2fc3e63
NF
14982011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1499
1500 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1501 not tree_common.
1502
0957c029
JJ
15032011-05-25 Jakub Jelinek <jakub@redhat.com>
1504
1505 * c-common.c (def_fn_type): Remove extra va_end.
1506
828fb3ba
JM
15072011-05-23 Jason Merrill <jason@redhat.com>
1508
1509 PR c++/48106
1510 * c-common.c (c_common_get_narrower): New.
1511 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1512
dde05067
NF
15132011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1514
1515 * c-common.h (check_function_arguments): Tweak prototype of
1516 check_function_arguments.
1517 * c-common.c (check_function_arguments): Likewise. Adjust
1518 calls to check_function_nonnull, check_function_format, and
1519 check_function_sentinel.
1520 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1521 separate attributes and typelist arguments. Use
1522 FOREACH_FUNCTION_ARGS to iterate over argument types.
1523
3c0d13bf
PC
15242011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1525
1526 * c-common.c (c_common_reswords): Reorder.
1527 * c-common.h (rid): Likewise.
1528
8242dd04
NF
15292011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1530
1531 * c-common.c (def_fn_type): Don't call build_function_type, call
1532 build_function_type_array or build_varargs_function_type_array
1533 instead.
1534 (c_common_nodes_and_builtins): Likewise.
1535
3d528853
NF
15362011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1537
1538 * c-common.c (c_add_case_label): Omit the loc argument to
1539 build_case_label.
1540 * c-common.h (build_case_label): Remove.
1541 * c-semantics.c (build_case_label): Remove.
1542
a04a722b
JM
15432011-05-05 Joseph Myers <joseph@codesourcery.com>
1544
1545 * c-objc.h (objc_start_method_definition): Update prototype.
1546 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1547
e19a18d4
NF
15482011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1549
1550 * c-common.c (check_main_parameter_types): Reindent. Don't use
1551 TYPE_ARG_TYPES directly.
1552 (handle_nonnull_attribute): Likewise.
1553 (sync_resolve_params): Likewise.
1554 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1555 to check_format_string.
1556 (handle_format_attribute): Likewise.
1557 (check_format_string): Take a function type to examine instead of
1558 a type list. Use a function_arg_iterator to step through argument
1559 types.
1560
c62c040f
RG
15612011-05-04 Richard Guenther <rguenther@suse.de>
1562
1563 * c-common.c (fix_string_type): Use size_int for index type bounds.
1564 (start_fname_decls): Do not pass NULL to build_int_cst.
1565 (c_init_attributes): Likewise.
1566 * c-lex.c (c_lex_with_flags): Likewise.
1567
c12ff9d8
JM
15682011-04-27 Jason Merrill <jason@redhat.com>
1569
1570 * c-common.c (make_tree_vector_from_list): New.
1571 * c-common.h: Declare it.
1572
304dfbe3
RG
15732011-04-26 Richard Guenther <rguenther@suse.de>
1574
1575 PR preprocessor/48248
1576 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1577 for output size with -P.
1578
3c0d13bf
PC
15792011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1580
1581 * c-common.c (struct c_common_resword): Add __underlying_type.
1582 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1583
04695783
JM
15842011-04-20 Jim Meyering <meyering@redhat.com>
1585
1586 * c-format.c (init_dollar_format_checking): Remove useless
1587 if-before-free.
1588
0dc33c3c
NP
15892011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1590
1591 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1592 (objc_detect_field_duplicates): New.
0dc33c3c 1593 * stub-objc.c: Likewise.
3c0d13bf 1594
c59633d9
NP
15952011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1596
1597 * stub-objc.c (objc_declare_protocols): Renamed to
1598 objc_declare_protocol.
1599 * c-objc.h: Likewise.
3c0d13bf 1600
32dabdaf
NP
16012011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1602
1603 * stub-objc.c (objc_declare_class): Updated argument name.
1604
81f653d6
NF
16052011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1606
1607 * c-common.h (c_common_init_ts): Declare.
1608 * c-common.c (c_common_init_ts): Define.
1609
eb345401
NP
16102011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1611
1612 * c-objc.h (objc_build_message_expr): Updated prototype.
1613 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 1614
a358e188
MJ
16152011-04-12 Martin Jambor <mjambor@suse.cz>
1616
1617 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1618 of cgraph_node.
1619
e6313a78
RG
16202011-04-11 Richard Guenther <rguenther@suse.de>
1621
1622 * c-common.c (complete_array_type): Build a range type of
1623 proper type.
1624
dcf0c47e
NF
16252011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1626
1627 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1628 (handle_type_generic_attribute): Likewise.
1629
1ee44b26
JM
16302011-04-07 Jason Merrill <jason@redhat.com>
1631
1632 PR c++/48450
1633 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1634 conversion from C++0x scoped enum.
1635
acce4e77
JM
16362011-04-06 Joseph Myers <joseph@codesourcery.com>
1637
1638 * c-target-def.h: New file.
1639 * c-target.def: New file.
1640 * c-target.h: New file.
1641 * c-common.c (targetcm): Don't define here.
1642 * c-common.h (default_handle_c_option): Declare.
1643 * c-format.c: Include c-target.h instead of target.h.
1644 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1645 include tm.h.
1646 (default_handle_c_option): Move from targhooks.c.
1647
e2eefb55
JJ
16482011-03-29 Jakub Jelinek <jakub@redhat.com>
1649
1650 PR preprocessor/48248
1651 * c-ppoutput.c (print): Add src_file field.
1652 (init_pp_output): Initialize it.
1653 (maybe_print_line): Don't optimize by adding up to 8 newlines
1654 if map->to_file and print.src_file are different file.
1655 (print_line): Update print.src_file.
1656
ba78087b
KT
16572011-03-25 Kai Tietz <ktietz@redhat.com>
1658
1659 * c-ada-spec.c (compare_comment): Use filename_cmp
1660 instead of strcmp for filename.
1661
0edf1bb2
JL
16622011-03-25 Jeff Law <law@redhat.com>
1663
1664 * c-family/c-common.c (def_fn_type): Add missing va_end.
1665
c7dc8804
JM
16662011-03-25 Jason Merrill <jason@redhat.com>
1667
1668 * c.opt: Add -std=c++03.
1669
d1d879b1
EB
16702011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1671
1672 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1673
62d784f7
KT
16742011-03-17 Kai Tietz
1675
1676 PR target/12171
5050afdf
KT
1677 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1678 Display allowed attributes for function pointer types.
1679 (pp_c_attributes_display): New function to display
1680 attributes having affects_type_identity flag set to true.
1681 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1682
62d784f7
KT
1683 * c-common.c (c_common_attribute_table):
1684 Add new element.
1685 (c_common_format_attribute_table): Likewise.
1686
82d37118
JM
16872011-03-18 Jason Merrill <jason@redhat.com>
1688
49a000c3
JM
1689 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1690 * c-common.h: Don't declare it here.
1691 * c-common.c: Or define it here.
1692 * c-opts.c (c_common_handle_option): Or set it here.
1693
82d37118
JM
1694 PR c++/35315
1695 * c-common.c (handle_transparent_union_attribute): Don't
1696 make a duplicate type in C++.
1697
17bc631c
JM
16982011-03-15 Jason Merrill <jason@redhat.com>
1699
1700 * c-common.c (max_constexpr_depth): New.
1701 * c-common.h: Declare it.
1702 * c-opts.c (c_common_handle_option): Set it.
1703 * c.opt (fconstexpr-depth): New option.
1704
1b9b91a6
JM
17052011-03-11 Jason Merrill <jason@redhat.com>
1706
f231b5ff
JM
1707 * c-common.c (attribute_takes_identifier_p): Add missing const.
1708
1b9b91a6
JM
1709 PR c++/46803
1710 * c-common.c (attribute_takes_identifier_p): Assume that an
1711 unknown attribute takes an identifier.
1712
a19e4d44
NF
17132011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1714
1715 PR c/47786
1716 * c-common.c (c_type_hash): Call list_length instead of iterating
1717 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1718
982d62f6
JJ
17192011-02-19 Jakub Jelinek <jakub@redhat.com>
1720
1721 PR c/47809
1722 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1723
0a256240
NP
17242011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1725
1726 * c.opt (fobjc-abi-version=) New.
1727 (fobjc-nilcheck): New.
1728
ba9e6dd5
NF
17292011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1730
1731 PR c++/46890
1732 * c-common.h (keyword_is_decl_specifier): Declare.
1733 * c-common.c (keyword_is_decl_specifier): Define.
1734 (keyword_is_function_specifier): New function.
1735
7273813a
JJ
17362011-01-26 Jakub Jelinek <jakub@redhat.com>
1737
1738 PR c/47473
1739 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1740 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1741 REAL_TYPE.
1742
908ef79b
AC
17432011-01-26 Arnaud Charlet <charlet@adacore.com>
1744
1745 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1746
237e9384
JJ
17472011-01-26 Jakub Jelinek <jakub@redhat.com>
1748
1749 PR pch/47430
1750 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1751 after init_c_lex if pch_file is set.
1752
47ea1edf
DK
17532011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1754
d4dba752 1755 PR c++/43601
47ea1edf
DK
1756 * c.opt (-fkeep-inline-dllexport): New switch.
1757
2aa9c6ae
RG
17582011-01-12 Richard Guenther <rguenther@suse.de>
1759
1760 PR middle-end/32511
1761 * c-common.c (handle_weak_attribute): Warn instead of error
1762 on declaring an inline function weak.
1763
7bd11157
TT
17642011-01-05 Tom Tromey <tromey@redhat.com>
1765
1766 * c-common.h (lvalue_error): Update.
1767 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1768 not error.
1769
0e66e494 17702010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 1771
b4f588c4
NP
1772 PR objc/47075
1773 * c-objc.h (objc_finish_message_expr): Added argument to
1774 prototype.
1775
f4da8dce
NF
17762010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1777
1778 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1779 Use prototype_p.
1780
46270f14
NP
17812010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1782
1783 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 1784 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 1785
4816c593
NF
17862010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1787
1788 * c-common.h (readonly_error): Declare.
1789 * c-common.c (readonly_error): Define.
1790
7a6daeb0
NF
17912010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1792
1793 * c-common.h (invalid_indirection_error): Declare.
1794 * c-common.c (invalid_indirection_error): Define.
1795
892f6119
RG
17962010-12-03 Richard Guenther <rguenther@suse.de>
1797
1798 PR c/46745
1799 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1800 (pp_c_unary_expression): Likewise.
1801 (pp_c_expression): Likewise.
1802
6c39e757
NP
18032010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1804
1805 * c-common.h (objc_finish_function): New.
1806 (objc_non_volatilized_type): Removed.
1807 (objc_type_quals_match): Removed.
1808 * stub-objc.c (objc_finish_function): New.
1809 (objc_non_volatilized_type): Removed.
1810 (objc_type_quals_match): Removed.
9faeb493 1811
7c475d11
JM
18122010-11-30 Joseph Myers <joseph@codesourcery.com>
1813
1814 * c-common.h (parse_optimize_options): Declare.
1815 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1816 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1817
71f3e391
JM
18182010-11-29 Joseph Myers <joseph@codesourcery.com>
1819
1820 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1821 GET_ENVIRONMENT.
1822 * c-pch.c (O_BINARY): Don't define here.
1823 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1824
d5fabb58
JM
18252010-11-25 Joseph Myers <joseph@codesourcery.com>
1826
1827 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1828 targetm.except_unwind_info.
1829
299404a1
JM
18302010-11-23 Joseph Myers <joseph@codesourcery.com>
1831
1832 * c-opts.c (c_common_handle_option): Pass location to
1833 set_struct_debug_option.
1834
c98cd5bf
JM
18352010-11-23 Joseph Myers <joseph@codesourcery.com>
1836
1837 * c-common.c (visibility_options): Move from ../opts.c.
1838 * c-common.h (struct visibility_flags, visibility_options):
1839 Declare here.
1840 * c-opts.c (finish_options): Rename to c_finish_options.
1841 (c_common_init): Update call to finish_options.
1842
a9546771
NP
18432010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1844
1845 PR objc/34033
1846 * c-lex.c (lex_string): Check that each string in an Objective-C
1847 string concat sequence starts with either one or zero '@', and
1848 that there are no spurious '@' signs at the end.
1849
24a57808
JM
18502010-11-20 Joseph Myers <joseph@codesourcery.com>
1851
1852 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1853 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1854 HANDLE_PRAGMA_VISIBILITY.
1855 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1856 HANDLE_PRAGMA_VISIBILITY): Don't define.
1857 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1858
a9aa2c3a
NF
18592010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1860
1861 PR c++/16189
1862 PR c++/36888
1863 PR c++/45331
1864 * c-common.h (keyword_begins_type_specifier): Declare.
1865 (keyword_is_storage_class_specifier): Declare.
1866 (keyword_is_type_qualifier): Declare.
1867 * c-common.c (keyword_begins_type_specifier): New function.
1868 (keyword_is_storage_class_specifier): New function.
1869 (keyword_is_type_qualifier): Declare.
1870
5386338c
JM
18712010-11-19 Joseph Myers <joseph@codesourcery.com>
1872
1873 PR c/46547
1874 * c-common.c (in_late_binary_op): Define.
1875 (c_common_truthvalue_conversion): Check in_late_binary_op before
1876 calling c_save_expr.
1877 * c-common.h (in_late_binary_op): Declare.
1878
69ccdddb
JM
18792010-11-19 Joseph Myers <joseph@codesourcery.com>
1880
1881 * c-opts.c (c_common_handle_option): Update calls to
1882 set_struct_debug_option.
1883
6b192a09
NP
18842010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1885
1886 * c-common.h (objc_declare_protocols): Added additional argument.
1887 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 1888
fb52b50a
NF
18892010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1890
1891 PR c/33193
1892 * c-common.h (build_real_imag_expr): Declare.
1893 * c-semantics.c (build_real_imag_expr): Define.
1894
b37421c6
JM
18952010-11-17 Joseph Myers <joseph@codesourcery.com>
1896
1897 * c-opts.c (c_common_parse_file): Take no arguments.
1898 * c-common.h (c_common_parse_file): Update prototype.
1899
07078664
JJ
19002010-11-16 Jakub Jelinek <jakub@redhat.com>
1901
1902 PR c++/46401
1903 * c-common.c (warning_candidate_p): Don't track non-const calls
1904 or STRING_CSTs.
1905
c6a13190
ILT
19062010-11-15 Ian Lance Taylor <iant@google.com>
1907
1908 * c-lex.c (init_c_lex): Set macro debug callbacks if
1909 flag_dump_go_spec is set.
1910
925e8657
NP
19112010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1912
1913 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1914 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1915
bb0a9581
NF
19162010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1917
1918 PR preprocessor/45038
1919 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1920 dialects.
1921
c5fa0890
JM
19222010-11-12 Joseph Myers <joseph@codesourcery.com>
1923
1924 * c-common.h (c_family_lang_mask): Declare.
1925 * c-opts.c (c_family_lang_mask): Make extern.
1926 * c-pragma.c (handle_pragma_diagnostic): Use
1927 control_warning_option.
1928
a4d8c676
JM
19292010-11-12 Joseph Myers <joseph@codesourcery.com>
1930
1931 * c-common.c (parse_optimize_options): Update call to
1932 decode_options.
1933 * c-common.h (c_common_handle_option): Update prototype.
1934 * c-opts.c (c_common_handle_option): Take location_t parameter and
1935 pass it to other functions.
1936
f954bd2c
JM
19372010-11-11 Joseph Myers <joseph@codesourcery.com>
1938
1939 * c-opts.c (warning_as_error_callback): Remove.
1940 (c_common_initialize_diagnostics): Don't call
1941 register_warning_as_error_callback.
1942 (c_common_handle_option): Handle -Werror=normalized= here.
1943
d8a07487
JM
19442010-11-10 Joseph Myers <joseph@codesourcery.com>
1945
1946 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1947 in diagnostic.
1948 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1949 letter.
1950 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1951 Remove trailing '.' from diagnostics.
1952 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1953
d5478783
JM
19542010-11-10 Joseph Myers <joseph@codesourcery.com>
1955
1956 * c-common.c (parse_optimize_options): Pass global_dc to
1957 decode_options.
1958 * c-opts.c (c_common_handle_option): Pass &global_options to
1959 set_Wstrict_aliasing.
1960 * c.opt (v): Don't mark Common or document here.
1961
91ebb981
IS
19622010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1963
1964 PR target/44981
1965 * c-format.c (format_type): New type gcc_objc_string_format_type.
1966 (valid_stringptr_type_p): New.
1967 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 1968 (check_format_string): Pass expected type, use
91ebb981
IS
1969 valid_stringptr_type_p (), check that the format string types are
1970 consistent with the format specification.
1971 (decode_format_attr): Warn if NSString is used outside objective-c.
1972 (format_types_orig): Add NSString.
1973 (format_name): New.
1974 (format_flags): New.
1975 (check_format_arg): Handle format strings requiring an external parser.
1976 first_target_format_type: New variable.
1977 (handle_format_attribute): Set up first_target_format_type, pass the
1978 expected format arg string type to check_format_string().
1979 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1980 * stub-objc.c (objc_string_ref_type_p): New.
1981 (objc_check_format_arg): New.
1982
bede2adc
NP
19832010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1984
9faeb493 1985 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
1986 * c-common.h (objc_build_class_component_ref): New.
1987 * stub-objc.c (objc_build_class_component_ref): New.
1988
9a179d01
NP
19892010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1990
1991 * c.opt (Wproperty-assign-default): New option.
1992
22d8d616
NP
19932010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1994
1995 Implemented -fobjc-std=objc1 flag.
1996 * c.opt (fobjc-std=objc1): New option.
1997
2debdb4f
NP
19982010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1999
2000 Implemented format and noreturn attributes for Objective-C methods.
2001 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2002 attribute for Objective-C methods.
2003
ec52b111
JM
20042010-10-31 Jason Merrill <jason@redhat.com>
2005
2006 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2007 EXPR_LOC_OR_HERE.
2008
46a88c12
NP
20092010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2010
2011 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2012 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2013 (objc_add_property_declaration): Removed arguments for copies and
2014 ivar.
2015 (objc_build_getter_call): Renamed to
2016 objc_maybe_build_component_ref.
2017 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2018 (objc_is_property_ref): New.
2019 * c-common.c (c_common_reswords): Removed copies and ivar.
2020 * stub-objc.c (objc_add_property_declaration): Removed arguments
2021 for copies and ivar.
2022 (objc_build_getter_call): Renamed to
2023 objc_maybe_build_component_ref.
2024 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2025 (objc_is_property_ref): New.
9faeb493 2026
1e4bf85b
AC
20272010-10-29 Arnaud Charlet <charlet@adacore.com>
2028 Matthew Gingell <gingell@adacore.com>
2029
2030 * c-ada-spec.c (separate_class_package): New function.
2031 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2032 name of their enclosing package.
2033 (print_ada_declaration): Use separate_class_package.
2034
81f0bab2
JM
20352010-10-27 Jason Merrill <jason@redhat.com>
2036
2b08f2c5
JM
2037 * c-common.c (c_common_reswords): Add __is_literal_type.
2038 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2039
81f0bab2
JM
2040 * c-common.c (check_case_value): Remove special C++ code.
2041
200290f2
NP
20422010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2043
2044 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2045 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2046 and RID_LAST_PATTR.
2047 (objc_add_property_declaration): Added additional arguments.
2048 (objc_property_attribute_kind): Removed.
2049 (objc_set_property_attr): Removed.
2050 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2051 copy and nonatomic.
2052 * stub-objc.c (objc_add_property_declaration): Added additional
2053 arguments.
2054 (objc_set_property_attr): Removed.
9faeb493 2055
f614132b
NP
20562010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2057
2058 * c-common.h (objc_add_property_variable): Renamed to
2059 objc_add_property_declaration. Added location argument.
2060 * stub-objc.c (objc_add_property_variable): Same change.
2061
b8a18805
NP
20622010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2063
2064 * c-common.h (objc_maybe_printable_name): New.
2065 * stub-objc.c (objc_maybe_printable_name): New.
2066
30cd1c5d
AS
20672010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2068 Andrew Pinski <pinskia@gmail.com>
2069
2070 * c-common.h (c_common_mark_addressable_vec): Declare.
2071 * c-common.c (c_common_mark_addressable_vec): New function.
2072
249a82c4
NP
20732010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2074
2075 * c-common.h (objc_set_method_type): Removed.
2076 (objc_add_method_declaration): Added boolean argument.
2077 (objc_start_method_definition): Same change.
2078 (objc_build_method_signature): Same change.
2079 * stub-objc.c (objc_set_method_type): Removed.
2080 (objc_add_method_declaration): Added boolean argument.
2081 (objc_start_method_definition): Same change.
2082 (objc_build_method_signature): Same change.
2083
977e30bc
NP
20842010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2085
2086 * c-common.h (finish_file): Removed.
2087 (objc_write_global_declarations): New.
2088 * c-opts.c (c_common_parse_file): Do not call finish_file.
2089 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2090
da57d1b9
NP
20912010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2092
2093 Implemented parsing @synthesize and @dynamic for
2094 Objective-C/Objective-C++.
2095 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2096 (objc_add_synthesize_declaration): New.
2097 (objc_add_dynamic_declaration): New.
2098 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2099 * stub-objc.c (objc_add_synthesize_declaration): New.
2100 (objc_add_dynamic_declaration): New.
9faeb493 2101
0069111f
MM
21022010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2103
2104 PR target/46041
2105 * c-cppbuiltin.c (mode_has_fma): Move function here from
2106 builtins.c. Don't use the fma optab, instead just use the
2107 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2108 using -save-temps.
2109
e426b47b
NP
21102010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2111
2112 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2113
e426b47b
NP
2114 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2115
9faeb493 2116 Radar 4330422
e426b47b
NP
2117 * c-common.h (objc_non_volatilized_type): New declaration
2118 * stub-objc.c (objc_non_volatilized_type): New stub.
2119
90fbfdc3
NP
21202010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2121
e426b47b 2122 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2123
2124 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2125
9faeb493 2126 Radar 4133425
90fbfdc3 2127 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2128 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2129
c37d8c30
IS
21302010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2131
2132 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2133 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2134 (objc_ivar_visibility_kind): New enum.
2135 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2136 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2137 visibility enum.
2138
1b1562a5
MM
21392010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2140
2141 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2142 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2143 has the appropriate fma builtins.
2144 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2145
668ea4b1
IS
21462010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2147
1b1562a5 2148 merge from FSF apple 'trunk' branch.
668ea4b1 2149 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2150
668ea4b1
IS
2151 Radars 4436866, 4505126, 4506903, 4517826
2152 * c-common.c (c_common_resword): Define @property and its attributes.
2153 * c-common.h: Define property attribute enum entries.
2154 (OBJC_IS_PATTR_KEYWORD): New.
2155 (objc_property_attribute_kind): New enum.
2156 Declare objc_set_property_attr (), objc_add_property_variable (),
2157 objc_build_getter_call () and objc_build_setter_call ().
2158 * stub-objc.c (objc_set_property_attr): New stub.
2159 (objc_add_property_variable): Likewise.
2160 (objc_build_getter_call): Likewise.
2161 (objc_build_setter_call) Likewise.
1b1562a5 2162
a1178b30
IS
21632010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2164
1b1562a5 2165 merge from FSF apple 'trunk' branch.
a1178b30
IS
2166 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2167
2168 Radar 3803157 (method attributes)
2169 * c-common.c (handle_deprecated_attribute): Recognize
2170 objc methods as valid declarations.
2171 * c-common.h: Declare objc_method_decl ().
1b1562a5 2172 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2173
a75bfaa6
JM
21742010-10-08 Joseph Myers <joseph@codesourcery.com>
2175
2176 * c-common.c (parse_optimize_options): Call
2177 decode_cmdline_options_to_array_default_mask before
2178 decode_options. Update arguments to decode_options.
2179 * c-common.h (c_common_init_options_struct): Declare.
2180 * c-opts.c (c_common_init_options_struct): New. Split out from
2181 c_common_init_options.
2182
f05b9d93
NP
21832010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2184
2185 Implemented fast enumeration for Objective-C.
2186 * c-common.h (objc_finish_foreach_loop): New.
2187 * stub-objc.c (objc_finish_foreach_loop): New.
2188
1ebe4b4f
JM
21892010-10-05 Joseph Myers <joseph@codesourcery.com>
2190
2191 * c-common.h (struct diagnostic_context): Don't declare here.
2192 (c_common_initialize_diagnostics): Declare using
2193 diagnostic_context typedef.
2194 * c-opts.c (c_common_handle_option): Pass global_dc to
2195 handle_generated_option.
2196
d4d24ba4
JM
21972010-10-04 Joseph Myers <joseph@codesourcery.com>
2198
2199 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2200 handle_generated_option.
2201
478a1c5b
ILT
22022010-10-03 Ian Lance Taylor <iant@google.com>
2203
2204 * c.opt (-fplan9-extensions): New option.
2205
82a1c2fe
FXC
22062010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2207
2208 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2209 Remove.
2210 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2211 of duplicating code.
2212
92902b1b
IS
22132010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2214
2215 * c-common.c: Add two new entries for @optional
2216 and @required keywords.
2217
2218 merge from FSF 'apple/trunk' branch.
2219 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2220
2221 Radar 4386773
2222 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2223 objective-c keywords.
2224 (objc_set_method_opt): New declaration.
2225 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2226
46625112
JM
22272010-09-30 Joseph Myers <joseph@codesourcery.com>
2228
2229 * c-common.c (handle_optimize_attribute): Pass &global_options to
2230 cl_optimization_save and cl_optimization_restore.
2231 * c-opts.c (c_common_handle_option): Pass &global_options to
2232 handle_generated_option.
2233 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2234 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2235 &global_options to cl_optimization_restore.
2236
49b91f05
NP
22372010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2238
2239 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2240 Objective-C/Objective-C++ keywords.
2241
13ed556f 22422010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2243
9faeb493
UB
2244 Merge from 'apple/trunk' branch on FSF servers.
2245
a6341d57
NP
2246 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2247
2248 Radar 4281748
2249 * c-common.h (objc_check_global_decl): New declaration.
2250 * stub-objc.c (objc_check_global_decl): New stub.
2251
f0036cca
JM
22522010-09-29 Joseph Myers <joseph@codesourcery.com>
2253
2254 * c.opt: Don't use VarExists.
2255
e3339d0f
JM
22562010-09-29 Joseph Myers <joseph@codesourcery.com>
2257
2258 * c-common.c (c_cpp_error): Update names of diagnostic_context
2259 members.
2260 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2261 cl_optimization members.
2262 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2263 sanitize_cpp_opts, finish_options): Update names of cpp_options
2264 members.
2265
1973201f
NP
22662010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2267
2268 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2269 (objc_is_reserved_word): Removed.
2270 * c-common.c: Updated comments.
2271 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2272 objc_is_reserved_word.
2273 * stub-objc.c (objc_is_reserved_word): Removed.
2274
f7e71da5
IS
22752010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2276
9faeb493 2277 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2278 include attributes.
2279 (objc_start_method_definition): Likewise.
2280 (objc_build_keyword_decl): Likewise.
2281 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2282 (objc_start_method_definition): Likewise.
2283 (objc_build_keyword_decl): Likewise.
2284
c165dca7
IS
22852010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2286
2287 * c-common.h (objc_start_class_interface): Adjust prototype.
2288 (objc_start_category_interface): Likewise.
2289 (objc_start_protocol): Likewise.
2290 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2291 (objc_start_class_interface): Likewise.
2292 (objc_start_category_interface): Likewise.
2293
7458026b
ILT
22942010-09-27 Ian Lance Taylor <iant@google.com>
2295
2296 * c-common.c (c_common_attribute_table): Add no_split_stack.
2297 (handle_no_split_stack_attribute): New static function.
2298
b581b85b
NP
22992010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2300
9faeb493 2301 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2302
2303 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2304
9faeb493 2305 Radar 4229905
b581b85b
NP
2306 * c-common.h (objc_have_common_type): New declaration.
2307 * stub-objc.c (objc_have_common_type): New stub.
2308
2309 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2310
2311 Radar 4154928
2312 * c-common.h (objc_common_type): New prototype.
9faeb493 2313 * stub-objc.c (objc_common_type): New stub.
b581b85b 2314
46a4da10
JH
23152010-09-24 Jan Hubicka <jh@suse.cz>
2316
2317 * c-common.c (handle_leaf_attribute): New function.
2318 (struct attribute_spec c_common_att): Add leaf.
2319
e200444e
JM
23202010-09-22 Joseph Myers <joseph@codesourcery.com>
2321
2322 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2323 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2324 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2325 -include-barrier, -include-directory, -include-directory=,
2326 -include-directory-after, -include-directory-after=,
2327 -include-prefix, -include-prefix=, -include-with-prefix,
2328 -include-with-prefix=, -include-with-prefix-after,
2329 -include-with-prefix-after=, -include-with-prefix-before,
2330 -include-with-prefix-before=, -no-integrated-cpp,
2331 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2332 -output=, -pedantic, -pedantic-errors, -preprocess,
2333 -print-missing-file-dependencies, -trace-includes, -traditional,
2334 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2335 -user-dependencies, -verbose, -write-dependencies,
2336 -write-user-dependencies, no-integrated-cpp, traditional): New.
2337
29a80ea6
NP
23382010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2339
2340 PR objc/23710
ac1fc2fc
NP
2341 * c-common.h (objc_start_method_definition): Return bool instead
2342 of void.
2343 * stub-objc.c (objc_start_method_definition): Return bool instead
2344 of void.
2345
23462010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2347
2348 PR objc/25965
2349 * c-common.h (objc_get_interface_ivars): New declaration.
2350 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 2351
de621752
ILT
23522010-09-15 Ian Lance Taylor <iant@google.com>
2353
2354 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 2355 messages. Remove period at end of warning message.
de621752 2356
ba885ec5
NS
23572010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2358
2359 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2360 (handle_alias_attribute): ... here.
2361 (handle_ifunc_attribute): New.
2362
c5ee1358
MM
23632010-09-06 Mark Mitchell <mark@codesourcery.com>
2364
2365 * c-common.h (do_warn_double_promotion): Declare.
2366 * c-common.c (do_warn_double_promotion): Define.
2367
0a0b3574
MM
23682010-09-05 Mark Mitchell <mark@codesourcery.com>
2369
2370 * c.opt (Wdouble-promotion): New.
2371
d1779886
JM
23722010-09-02 Joseph Myers <joseph@codesourcery.com>
2373
2374 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2375 fvtable-thunks, fxref): Mark no longer supported in help text.
2376
2d2bd949
JM
23772010-09-02 Joseph Myers <joseph@codesourcery.com>
2378
2379 * c.opt (Wimport, fall-virtual, falt-external-templates,
2380 fdefault-inline, fenum-int-equiv, fexternal-templates,
2381 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2382 fname-mangling-version-, fnew-abi, fnonnull-objects,
2383 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2384 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2385 applicable.
2386 (fhandle-exceptions): Mark with Alias and Warn.
2387 * c-opts.c (c_common_handle_option): Don't handle options marked
2388 as ignored.
2389
5de8299c
JM
23902010-09-02 Joseph Myers <joseph@codesourcery.com>
2391
2392 * c.opt (Wcomments, Werror-implicit-function-declaration,
2393 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2394 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2395 aliases.
2396 * c-common.c (option_codes): Use OPT_Wcomment instead of
2397 OPT_Wcomments.
2398 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2399 Don't handle options marked as aliases.
2400
0ceb0201
RG
24012010-08-25 Richard Guenther <rguenther@suse.de>
2402
2403 * c-common.c (c_common_get_alias_set): Remove special
2404 handling for pointers.
2405
ac47786e
NF
24062010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2407
2408 * c-common.c: Use FOR_EACH_VEC_ELT.
2409 * c-gimplify.c: Likewise.
2410 * c-pragma.c: Likewise.
2411
c878765b
JM
24122010-08-16 Joseph Myers <joseph@codesourcery.com>
2413
2414 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2415 RejectDriver.
2416 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2417 RejectDriver.
2418 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2419 instead of OPT_MDX and OPT_MMDX.
2420
603349bf
JM
24212010-08-16 Joseph Myers <joseph@codesourcery.com>
2422
2423 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2424
644fa7ac
JM
24252010-08-12 Joseph Myers <joseph@codesourcery.com>
2426
2427 * c.opt (MD, MMD): Change to MDX and MMDX.
2428 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2429
481e1176
JM
24302010-08-11 Joseph Myers <joseph@codesourcery.com>
2431
2432 * c-opts.c (c_common_handle_option): Call handle_generated_option
2433 instead of handle_option.
2434
ac8dc9f7
NF
24352010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2436
2437 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2438 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2439
4f8c876d
NF
24402010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2441
2442 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2443 (pending_redefine_extname): Change type to a VEC.
2444 (add_to_renaming_pragma_list): Update for new type of
2445 pending_redefine_extname.
ac8dc9f7 2446 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 2447
3b0c690e
AC
24482010-08-04 Arnaud Charlet <charlet@adacore.com>
2449
2450 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2451 visited.
2452 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2453 decide whether a type has already been declared/seen.
2454 Do not go to the original type.
2455 (dump_nested_types): New parameter forward.
2456 Generate forward declaration if needed and mark type as visited.
2457 (print_ada_declaration): Call dump_nested_types if not already done.
2458 Mark types as visited.
2459
1890bccc
JM
24602010-08-03 Joseph Myers <joseph@codesourcery.com>
2461
2462 * c.opt (-print-pch-checksum): Remove option.
2463 * c-opts.c (c_common_handle_option): Don't handle
2464 OPT_print_pch_checksum.
2465
5f20c657
JM
24662010-07-27 Joseph Myers <joseph@codesourcery.com>
2467
2468 * c-common.h (c_common_handle_option): Update prototype and return
2469 value type.
2470 * c-opts.c (c_common_handle_option): Update prototype and return
2471 value type. Update calls to handle_option and
2472 enable_warning_as_error.
2473
f551f80c
JJ
24742010-07-27 Jakub Jelinek <jakub@redhat.com>
2475
2476 PR c/45079
2477 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2478
61ff2bdc
JM
24792010-07-27 Joseph Myers <joseph@codesourcery.com>
2480
2481 * c-common.h (c_common_missing_argument): Remove.
2482 * c-opts.c (c_common_missing_argument): Remove.
2483 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2484 idirafter, imacros, include, isysroot, isystem, iquote): Add
2485 MissingArgError.
2486 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2487
7a9bf9a4
JM
24882010-07-27 Joseph Myers <joseph@codesourcery.com>
2489
2490 * c-common.h (c_common_option_lang_mask,
2491 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2492 New.
2493 (c_common_init_options): Update prototype.
2494 * c-opts.c (c_common_option_lang_mask): New.
2495 (c_common_initialize_diagnostics): Split out of
2496 c_common_init_options.
2497 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2498 New.
2499 (c_common_init_options): Update prototype. Use decoded options in
2500 search for -lang-asm.
2501
910ad8de
NF
25022010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2503
2504 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2505 * c-format.c: Likewise.
2506
718f9c0f
MLI
25072010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2508
2509 * c-common.h: Include diagnostic-core.h. Error if already
2510 included.
2511 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2512
4d451982
MLI
25132010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2514
2515 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2516 Do not include expr.h
2517 (vector_mode_valid_p): Move here.
2518
119fe915
SB
25192010-06-21 DJ Delorie <dj@redhat.com>
2520
2521 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2522 allow these pragmas anywhere.
2523
25242010-06-14 Jakub Jelinek <jakub@redhat.com>
2525
2526 PR bootstrap/44509
2527 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2528 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2529 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2530 ggc_strdup instead of xstrdup.
2531
25322010-06-10 Jakub Jelinek <jakub@redhat.com>
2533
2534 * c-cppbuiltin.c: Include cpp-id-data.h.
2535 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2536 (lazy_hex_fp_value): New function.
2537 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2538
6662d794
MLI
25392010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2540
2541 * c-gimplify.c: Do not include tree-flow.h
2542
38f8b050
JR
25432010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2544
2545 PR other/44034
2546 * c-common.c: Rename targetm member:
2547 targetm.enum_va_list -> targetm.enum_va_list_p
2548
9589f23e
AS
25492010-06-28 Anatoly Sokolov <aesok@post.ru>
2550
2551 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2552
3b06d379
SB
25532010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2554
2555 * c-cppbuiltin.c: Do not include except.h.
2556
d166d4c3
AK
25572010-06-24 Andi Kleen <ak@linux.intel.com>
2558
9faeb493
UB
2559 * c-common.c (warn_for_omitted_condop): New.
2560 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 2561
70cb8be6
JM
25622010-06-21 Joseph Myers <joseph@codesourcery.com>
2563
2564 * c.opt (lang-objc): Remove.
2565 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2566
a4c97feb
JR
25672010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2568
2569 * c-opts.c: Include "tm_p.h".
2570
6e2f1956
JM
25712010-06-20 Joseph Myers <joseph@codesourcery.com>
2572
2573 * c-common.c (parse_optimize_options): Update call to
2574 decode_options.
2575
bc87224e
NF
25762010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2577
2578 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2579 new type of types_used_by_cur_var_decl.
2580
b49cf425
JR
25812010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2582
2583 PR bootstrap/44512
2584 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2585 for C++ standard compliance.
2586
59f9c2ed
JM
25872010-06-16 Jason Merrill <jason@redhat.com>
2588
2589 * c.opt: Add -Wnoexcept.
2590
33766b66
RG
25912010-06-16 Richard Guenther <rguenther@suse.de>
2592
2593 PR c/44555
2594 * c-common.c (c_common_truthvalue_conversion): Remove
2595 premature and wrong optimization concering ADDR_EXPRs.
2596
eff7e30c
AC
25972010-06-15 Arnaud Charlet <charlet@adacore.com>
2598
2599 * c-ada-spec.c (dump_sloc): Remove column info.
2600 (is_simple_enum): New function.
2601 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2602 enum types when relevant.
2603
6312e84d
MLI
26042010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2605
9faeb493 2606 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2607 location.
2608
1cb42611
JM
26092010-06-10 Joseph Myers <joseph@codesourcery.com>
2610
2611 * c-opts.c (c_common_handle_option): Don't handle
2612 OPT_fshow_column.
2613
a9429e29
LB
26142010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2615
2616 * c-pragma.c (push_alignment): Use typed GC allocation.
2617 (handle_pragma_push_options): Likewise.
2618
2619 * c-common.c (parse_optimize_options): Likewise.
2620
2621 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2622 option.
2623
5498f011
JM
26242010-06-07 Joseph Myers <joseph@codesourcery.com>
2625
2626 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2627 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2628 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2629 flag_signed_bitfields, warn_strict_null_sentinel,
2630 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2631 flag_gen_declaration, flag_no_gnu_keywords,
2632 flag_implement_inlines, flag_implicit_templates,
2633 flag_implicit_inline_templates, flag_optional_diags,
2634 flag_elide_constructors, flag_default_inline, flag_rtti,
2635 flag_conserve_space, flag_access_control, flag_check_new,
2636 flag_new_for_scope, flag_weak, flag_working_directory,
2637 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2638 flag_enforce_eh_specs, flag_threadsafe_statics,
2639 flag_pretty_templates): Remove.
2640 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2641 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2642 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2643 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2644 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2645 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2646 flag_no_gnu_keywords, flag_implement_inlines,
2647 flag_implicit_templates, flag_implicit_inline_templates,
2648 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2649 flag_rtti, flag_conserve_space, flag_access_control,
2650 flag_check_new, flag_new_for_scope, flag_weak,
2651 flag_working_directory, flag_use_cxa_atexit,
2652 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2653 flag_threadsafe_statics, flag_pretty_templates,
2654 warn_strict_null_sentinel): Remove.
2655 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2656 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2657 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2658 fimplicit-inline-templates, fimplicit-templates,
2659 flax-vector-conversions, fms-extensions, fnil-receivers,
2660 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2661 frtti, fshort-double, fshort-enums, fshort-wchar,
2662 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2663 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2664 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2665 gen-decls, undef): Use Var.
2666 (fdefault-inline, foptional-diags): Document as doing nothing.
2667 * c-opts.c (c_common_handle_option): Remove cases for options now
2668 using Var. Mark ignored options as such.
2669
39dabefd
SB
26702010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2671
9faeb493 2672 * c-common.c: Moved to here from parent directory.
39dabefd
SB
2673 * c-common.def: Likewise.
2674 * c-common.h: Likewise.
2675 * c-cppbuiltin.c: Likewise.
2676 * c-dump.c: Likewise.
2677 * c-format.c: Likewise.
2678 * c-format.h : Likewise.
2679 * c-gimplify.c: Likewise.
2680 * c-lex.c: Likewise.
2681 * c-omp.c: Likewise.
2682 * c.opt: Likewise.
2683 * c-opts.c: Likewise.
2684 * c-pch.c: Likewise.
2685 * c-ppoutput.c: Likewise.
2686 * c-pragma.c: Likewise.
2687 * c-pragma.h: Likewise.
2688 * c-pretty-print.c: Likewise.
2689 * c-pretty-print.h: Likewise.
2690 * c-semantics.c: Likewise.
2691 * stub-objc.c: Likewise.
2692
2693 * c-common.c: Include gt-c-family-c-common.h.
2694 * c-pragma.c: Include gt-c-family-c-pragma.h.
2695\f
d1e082c2 2696Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
2697
2698Copying and distribution of this file, with or without modification,
2699are permitted in any medium without royalty provided the copyright
2700notice and this notice are preserved.