c-pretty-print.c (print_c_tree): Simplify.
[gcc.git] / gcc / c-family / ChangeLog
1 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2
3 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4 c_pretty_printer variable.
5
6 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7
8 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
9 (pp_base): Remove.
10 (pp_c_base): Likewise. Adjust users.
11 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
12 (pp_c_whitespace): Do not call pp_base.
13 (pp_c_left_paren): Likewise.
14 (pp_c_right_paren): Likewise.
15 (pp_c_left_brace): Likewise.
16 (pp_c_right_brace): Likewise.
17 (pp_c_left_bracket): Likewise.
18 (pp_c_right_bracket): Likewise.
19 (pp_c_dot): Likewise.
20 (pp_c_ampersand): Likewise.
21 (pp_c_star): Likewise.
22 (pp_c_arrow): Likewise.
23 (pp_c_semicolon): Likewise.
24 (pp_c_complement): Likewise.
25 (pp_c_exclamation): Likewise.
26 (pp_c_direct_declarator): Likewise.
27 (pp_c_ws_string): Likewise.
28 (pp_c_identifier): Likewise.
29 (pp_c_statement): Likewise.
30 (print_c_tree): Likewise.
31
32 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
33
34 PR c++/58072
35 * c-common.c (c_parse_error): Catch user-defined literal tokens and
36 provide useful error strings.
37
38 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
39
40 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
41 printer functions instead of pp_string or operators and punctuators.
42 (dump_generic_ada_node): Likewise.
43 * c-pretty-print.c (pp_c_type_specifier): Likewise.
44 (pp_c_relational_expression): Likewise.
45 (pp_c_logical_or_expression): Likewise.
46
47 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
48
49 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
50 functions instead of pp_character.
51 (pp_ada_tree_identifier): Likewise.
52 (dump_ada_double_name): Likewise.
53 (dump_ada_function_declaration): Likewise.
54 (dump_ada_array_domains): Likewise.
55 (dump_template_types): Likewise.
56 (dump_generic_ada_node): Likewise.
57 (print_ada_declaration): Likewise.
58 (print_ada_struct_decl): Likewise.
59 * c-pretty-print.c (pp_c_integer_constant): Likewise.
60
61 2013-07-23 Tom Tromey <tromey@redhat.com>
62
63 * c-common.h (enum rid) <RID_GENERIC>: New constant.
64 * c-common.c (c_common_reswords): Add _Generic.
65
66 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
67
68 * c-common.c: Fix typos.
69 * c-common.h: Likewise.
70
71 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
72
73 PR c++/55203
74 * c-common.c (c_common_attribute_table): Add warn_unused.
75 (handle_warn_unused_attribute): New.
76
77 2013-07-10 Jakub Jelinek <jakub@redhat.com>
78
79 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
80 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
81
82 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
83
84 PR c++/57869
85 * c.opt: Add Wconditionally-supported.
86
87 2013-07-08 Graham Stott <graham.stott@btinternet.com>
88
89 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
90 unused variables l_length and l_node.
91
92 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
93
94 PR c/57821
95 * c-common.c (complete_array_type): Delay folding first index
96 like other indices. When folding, check for index overflow.
97
98 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
99
100 PR c++/57509
101 * c-common.h (c_build_vec_perm_expr): New complain argument.
102 * c-common.c (c_build_vec_perm_expr): Likewise.
103 Use save_expr also in C++.
104
105 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
106
107 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
108 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
109 * c-opts.c (c_common_post_options): Likewise.
110
111 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
112
113 * array-notation-common.c (length_mismatch_in_expr): Changed the
114 parameter type's from a dynamic array to a vec_tree. Also removed
115 the size parameters.
116 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
117 the change above.
118
119 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
120
121 * c-common.h (struct cilkplus_an_parts): New structure.
122 (struct cilkplus_an_loop_parts): Likewise.
123 (cilkplus_extract_an_triplets): New prototype.
124 (fix_sec_implicit_args): Likewise.
125 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
126 (fix_sec_implicit_args): Likewise.
127
128 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
129
130 * array-notation-common.c (find_inv_trees): Removed an unwanted
131 typecasting.
132 * c-common.h (struct inv_list::additional_tcodes): Changed type from
133 enum rid to enum tree_code.
134
135 2013-06-11 Jan Hubicka <jh@suse.cz>
136
137 * c-common.c (handle_alias_ifunc_attribute): Do not set
138 DECL_EXTERNAL for weakref variables.
139 * c-pragma.c (handle_pragma_weak): Make sure aliases
140 are not declared as external.
141
142 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
143
144 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
145 function from c/c-array-notation.c.
146 (is_cilkplus_reduce_builtin): Likewise.
147 (find_rank): Likewise.
148 (extract_array_notation_exprs): Likewise.
149 (replace_array_notations): Likewise.
150 (find_inv_trees): Likewise.
151 (replace_inv_trees): Likewise.
152 (contains_array_notation_expr): Likewise.
153 (find_correct_array_notation_type): Likewise.
154 * c-common.h (struct inv_list): Moved this struct from the file
155 c/c-array-notation.c and added a new field called additional tcodes.
156 (length_mismatch_in_expr_p): New prototype.
157 (is_cilkplus_reduce_builtin): Likewise.
158 (find_rank): Likewise.
159 (extract_array_notation_exprs): Likewise.
160 (replace_array_notation): Likewise.
161 (find_inv_trees): Likewise.
162 (replace_inv_trees): Likewise.
163 (find_correct_array_notation_type): Likewise.
164
165 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
166
167 * c-common.c (c_define_builtins): When cilkplus is enabled, the
168 function array_notation_init_builtins is called.
169 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
170 * c-common.def (ARRAY_NOTATION_REF): New tree.
171 * c-common.h (build_array_notation_expr): New function declaration.
172 (build_array_notation_ref): Likewise.
173 (extract_sec_implicit_index_arg): New extern declaration.
174 (is_sec_implicit_index_fn): Likewise.
175 (ARRAY_NOTATION_CHECK): New define.
176 (ARRAY_NOTATION_ARRAY): Likewise.
177 (ARRAY_NOTATION_START): Likewise.
178 (ARRAY_NOTATION_LENGTH): Likewise.
179 (ARRAY_NOTATION_STRIDE): Likewise.
180 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
181 ARRAY_NOTATION_REF.
182 (pp_c_expression): Likewise.
183 * c.opt (flag_enable_cilkplus): New flag.
184 * array-notation-common.c: New file.
185
186 2013-05-14 Jakub Jelinek <jakub@redhat.com>
187
188 PR c++/57274
189 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
190
191 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
192
193 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
194 vectors.
195
196 2013-05-07 Han Shen <shenhan@google.com>
197
198 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
199
200 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
201
202 * c-common.c (check_user_alignment): Emit error for negative values.
203
204 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
205
206 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
207
208 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
209
210 * c-cppbuiltin.c (c_cpp_builtins): Do not define
211 __GXX_EXPERIMENTAL_CXX1Y__.
212
213 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
214 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
215
216 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
217 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
218 to simply use OPT_Wpointer_arith.
219 (c_sizeof_or_alignof_type): Likewise.
220
221 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
222
223 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
224
225 2013-04-12 Jakub Jelinek <jakub@redhat.com>
226
227 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
228 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
229 specifiers.
230
231 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
232
233 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
234
235 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
236
237 * c-common.c (pointer_int_sum): Remove dead code.
238
239 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
240
241 PR middle-end/56524
242 * c-common.c (handle_optimize_attribute): Don't call
243 save_optabs_if_changed.
244
245 2013-03-05 Jakub Jelinek <jakub@redhat.com>
246
247 PR middle-end/56461
248 * c-pch.c (pch_init): Free target_validity at the end.
249
250 2013-03-04 Jakub Jelinek <jakub@redhat.com>
251
252 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
253
254 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
255 Jakub Jelinek <jakub@redhat.com>
256
257 PR sanitizer/56454
258 * c-common.c (handle_no_sanitize_address_attribute): New function.
259 (c_common_attribute_table): Add no_sanitize_address attribute.
260 (handle_no_address_safety_analysis_attribute): Add
261 no_sanitize_address attribute, not no_address_safety_analysis
262 attribute.
263
264 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
265
266 PR target/52555
267 * c-common.c (handle_optimize_attribute): Call
268 save_optabs_if_changed.
269
270 2013-02-18 Jakub Jelinek <jakub@redhat.com>
271 Steven Bosscher <steven@gcc.gnu.org>
272
273 PR pch/54117
274 * c-opts.c (c_common_post_options): If debug info is enabled
275 and non-dwarf*, refuse to load PCH files and when writing PCH
276 file warn.
277
278 2013-02-05 Jakub Jelinek <jakub@redhat.com>
279
280 PR middle-end/56167
281 * c-common.c (handle_error_attribute): Fix condition.
282
283 2013-01-30 Jakub Jelinek <jakub@redhat.com>
284
285 PR c++/55742
286 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
287
288 2013-01-18 Jason Merrill <jason@redhat.com>
289
290 PR target/54908
291 * c.opt (-fextern-tls-init): New.
292 * c-opts.c (c_common_post_options): Handle it.
293
294 2013-01-09 Jakub Jelinek <jakub@redhat.com>
295
296 PR c/48418
297 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
298 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
299 and is either negative or bigger or equal to type precision
300 of the first operand.
301
302 2012-12-03 Marek Polacek <polacek@redhat.com>
303
304 PR c/55570
305 * c-common.c (check_user_alignment): Swap order of tests,
306 check TREE_CODE first.
307
308 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
309
310 PR c++/52654
311 * c-common.h (overflow_type): New enum.
312 (build_userdef_literal): Add overflow_type argument.
313 (tree_userdef_literal): Add overflow_type.
314 (USERDEF_LITERAL_OVERFLOW): New access macro.
315 * c-common.c (build_userdef_literal): Add overflow_type
316 argument.
317 * c-lex.c (c_lex_with_flags): Add overflow_type to
318 build_userdef_literal calls.
319 (interpret_integer, interpret_float): Add overflow_type argument.
320
321 2012-11-28 Richard Biener <rguenther@suse.de>
322
323 PR c/35634
324 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
325 here and use a type with proper overflow behavior for types that would
326 need to be promoted for the arithmetic.
327
328 2012-11-23 Jakub Jelinek <jakub@redhat.com>
329
330 PR sanitizer/55435
331 * c-common.c (handle_no_address_safety_analysis_attribute): New
332 function.
333 (c_common_attribute_table): Add no_address_safety_analysis.
334
335 2012-11-16 Simon Baldwin <simonb@google.com>
336
337 * c.opt: Add f[no-]canonical-system-headers.
338 * c-opts.c (c_common_handle_option): Handle
339 OPT_fcanonical_system_headers.
340
341 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
342
343 PR c++/54413
344 * c-opts.c (c_common_handle_option): Set new flags.
345 * c.opt: Describe new flags.
346
347 2012-11-09 Jason Merrill <jason@redhat.com>
348
349 * c.opt (Wabi-tag): New.
350
351 2012-11-09 Andi Kleen <ak@linux.intel.com>
352
353 PR 55139
354 * c-common.c (get_atomic_generic_size): Mask with
355 MEMMODEL_MASK
356
357 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
358
359 PR c/53063
360 * c.opt (Wformat): Make it Alias Wformat=1.
361 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
362 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
363 LangEnabledBy.
364 (Wformat=): RejectNegative. Use LangEnabledBy.
365 (Wnonnull): Use LangEnabledBy.
366 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
367 * c-format.c (set_Wformat): Delete.
368 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
369 (maybe_read_dollar_number): Likewise.
370 (avoid_dollar_number): Likewise.
371 (finish_dollar_format_checking): Likewise.
372 (check_format_info): Likewise.
373 (check_format_info_main): Likewise.
374 (check_format_types): Likewise.
375 (format_type_warning): Likewise.
376 * c-common.c (int): Likewise.
377 (check_function_sentinel): Likewise.
378 * c-common.h (warn_format,set_Wformat): Do not declare here.
379
380 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
381
382 PR c/53063
383 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
384 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
385 Use LangEnabledBy.
386 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
387 common.opt.
388 (Wvariadic-macros): Init(1).
389 * c-opts.c (c_common_handle_option): Do not handle them
390 explicitly.
391 (c_common_post_options): Likewise.
392 (sanitize_cpp_opts): warn_unused_macros is now
393 cpp_warn_unused_macros.
394 (push_command_line_include): Likewise.
395 * c-common.c (warn_unknown_pragmas): Do not define.
396 * c-common.h (warn_unknown_pragmas): Do not declare.
397
398 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
399
400 PR c/51294
401 * c-common.c (conversion_warning): Handle conditional expressions.
402
403 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
404
405 PR c++/54930
406 * c.opt (Wreturn_local_addr): Define new option.
407
408 2012-10-25 Jason Merrill <jason@redhat.com>
409
410 * c.opt (Wvirtual-move-assign): New.
411
412 * c.opt (Winherited-variadic-ctor): New.
413
414 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
415
416 PR c++/54427
417 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
418
419 2012-10-23 Joseph Myers <joseph@codesourcery.com>
420
421 * c-common.h (pch_cpp_save_state): Declare.
422 * c-target.def (c_preinclude): New hook.
423 * c-opts.c (done_preinclude): New.
424 (push_command_line_include): Handle default preincluded header.
425 (cb_file_change): Call pch_cpp_save_state when calling
426 push_command_line_include.
427 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
428 (pch_cpp_save_state): New.
429 (pch_init): Call pch_cpp_save_state conditionally, instead of
430 calling cpp_save_state.
431
432 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
433
434 PR c/53063
435 PR c/40989
436 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
437 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
438 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
439 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
440 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
441 * c-opts.c (c_common_handle_option): Remove explicit handling from
442 here.
443 (c_common_post_options): Likewise.
444
445 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
446
447 * c-ada-spec.c (LOCATION_COL): Delete.
448 (compare_location): New function.
449 (compare_node): Use it.
450 (compare_comment): Likewise.
451
452 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
453
454 PR c/53063
455 PR c/40989
456 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
457 * c-opts.c (c_common_handle_option): Do not set them here. Add
458 comment.
459 (c_common_post_options): Likewise.
460
461 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
462
463 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
464 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
465 Remove POINTER_TYPE handling, add large unsigned handling and use
466 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
467
468 2012-10-12 Jakub Jelinek <jakub@redhat.com>
469
470 PR c/54381
471 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
472 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
473 locs and array of 3 trees instead of just single loc and single
474 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
475 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
476 For *cmp* builtins that take two sources strings report warnings
477 about first and second source, not about destination and source.
478
479 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
480
481 PR c++/53055
482 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
483
484 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
485
486 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
487 declaring something coming from another file.
488
489 2012-10-10 Arnaud Charlet <charlet@adacore.com>
490
491 PR ada/54845
492 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
493
494 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
495
496 PR c++/54194
497 * c-common.c (warn_about_parentheses): Add location_t parameter;
498 use EXPR_LOC_OR_LOC.
499 * c-common.h: Update declaration.
500
501 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
502
503 PR c++/54427
504 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
505 more operations. Make error messages optional.
506 * c-common.h (enum stv_conv): Moved from c-typeck.c.
507 (scalar_to_vector): Declare.
508
509 2012-10-08 Jason Merrill <jason@redhat.com>
510
511 * c-common.c (c_common_reswords): Add thread_local.
512
513 2012-10-08 Dodji Seketeli <dodji@redhat.com>
514
515 PR c++/53528 C++11 attribute support
516 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
517 new functions.
518 * c-common.c (check_cxx_fundamental_alignment_constraints): New
519 static function.
520 (handle_aligned_attribute): In choose strictest alignment
521 among many. Use new check_cxx_fundamental_alignment_constraints.
522 (handle_transparent_union_attribute): In c++11 attribute syntax,
523 don't look through typedefs.
524
525 2012-10-04 Arnaud Charlet <charlet@adacore.com>
526
527 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
528 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
529 out of dumpfile.h.
530
531 2012-09-25 Dehao Chen <dehao@google.com>
532
533 PR middle-end/54645
534 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
535 map when read in the pch.
536
537 2012-09-18 Arnaud Charlet <charlet@adacore.com>
538
539 * c-ada-spec.c: Style fixes.
540
541 2012-09-18 Thomas Quinot <quinot@adacore.com>
542
543 * c.opt (-fada-spec-parent): Define new command line switch.
544 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
545 is specified, generate binding spec as a child of the specified unit.
546
547 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
548 Manuel López-Ibáñez <manu@gcc.gnu.org>
549
550 PR c++/53210
551 * c.opt ([Winit-self]): Enabled by -Wall in C++.
552
553 2012-08-23 Arnaud Charlet <charlet@adacore.com>
554
555 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
556 for pointers, and add missing Convention C pragma.
557 (print_ada_struct_decl): Add missing aliased keyword.
558 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
559
560 2012-08-17 Jakub Jelinek <jakub@redhat.com>
561
562 * c-common.c (sizeof_pointer_memaccess_warning): New function.
563 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
564 * c-opts.c (c_common_handle_option): Enable it for -Wall.
565 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
566 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
567
568 2012-08-10 Richard Guenther <rguenther@suse.de>
569
570 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
571
572 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
573
574 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
575 instead of separate pp_newline and pp_flush.
576 (print_c_tree): Likewise.
577
578 2012-07-26 Richard Henderson <rth@redhat.com>
579
580 * c-common.c (handle_hot_attribute): Allow labels.
581 (handle_cold_attribute): Likewise.
582
583 2012-07-20 Jakub Jelinek <jakub@redhat.com>
584
585 PR c++/28656
586 * c-common.c (check_function_nonnull): Handle multiple nonnull
587 attributes properly.
588
589 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
590
591 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
592 * c-ada-spec.c: Likewise.
593 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
594
595 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
596
597 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
598 Remove code conditional on it.
599
600 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
601
602 * c-gimplify.c: Do not include basic-block.h.
603 * c-common.c: Do not include linfuncs.h.
604
605 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
606
607 * c-common.h: Include tree.h.
608
609 2012-07-02 Jason Merrill <jason@redhat.com>
610
611 PR c++/53524
612 * c-common.c (get_priority): Call default_conversion.
613
614 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
615
616 * c-pch.c (c_common_write_pch): Remove unused variables.
617
618 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
619
620 * cppspec.c: Moved from gcc/ to here.
621
622 2012-06-27 Kai Tietz <ktietz@redhat.com>
623
624 PR preprocessor/37215
625 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
626
627 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
628
629 * c-common.h (c_common_print_pch_checksum): Remove.
630 * c-pch.c: Do not include output.h.
631 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
632 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
633 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
634 (struct c_pch_header): Remove.
635 (get_ident): Update gpch version.
636 (pch_init): Do not print executable_checksum to asm_out_file.
637 Do not fail if there is no asm_out_file to read back from. Set
638 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
639 (c_common_write_pch): Verify that nothing was written to asm_out_file
640 since pch_init was called. Do not write a c_pch_header, and do not
641 copy from asm_out_file to the PCH.
642 (c_common_read_pch): Do not read a c_pch_header, and do not restore
643 the content of asm_out_file from the PCH.
644 (c_common_print_pch_checksum): Remove.
645 * c-opts.c (c_common_init): Print out executable_checksum directly.
646
647 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
648
649 * c-target.def (objc_declare_unresolved_class_reference,
650 objc_declare_class_definition): Add new hooks.
651
652 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
653
654 * c-lex.c: Do not include output.h.
655 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
656 Remove uses of ASM_OUTPUT_IDENT.
657
658 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
659
660 PR c++/51033
661 * c-common.h (c_build_vec_perm_expr): Move decl here.
662 * c-common.c (c_build_vec_perm_expr): Move definition
663 here.
664
665 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
666
667 * c.opt (fconserve-space): Turn into a no-op.
668
669 2012-06-04 Sterling Augustine <saugustine@google.com>
670
671 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
672 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
673 both the start and end of the function.
674
675 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
676
677 * c-common.c: Do not include output.h.
678 * c-pragma.c: Likewise.
679
680 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
681
682 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
683 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
684 (lang_decl_name): Handle namespace decls.
685
686 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
687
688 * c-ada-spec.c: Do not include output.h.
689 * c-semantics.c: Likewise.
690
691 2012-05-29 Joseph Myers <joseph@codesourcery.com>
692
693 * c-common.c: Fix typo.
694
695 2012-05-29 Michael Matz <matz@suse.de>
696
697 * c-common.h (c_expand_decl): Remove prototype.
698
699 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
700
701 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
702 * c-opts.c (c_common_handle_option): Remove code handling
703 warn_missing_braces.
704
705 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
706
707 PR c++/25137
708 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
709 -Wmissing_braces.
710
711 2012-05-22 Dodji Seketeli <dodji@redhat.com>
712
713 PR c++/53322
714 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
715
716 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
717
718 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
719 * c-opts.c (c_common_handle_option): Do not handle explicitly
720 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
721
722 2012-05-16 Dodji Seketeli <dodji@redhat.com>
723
724 PR preprocessor/7263
725 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
726 to cpp_classify_number. For diagnostics, use the precise location
727 instead of the global input_location.
728
729 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
730
731 PR c++/11856
732 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
733
734 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
735
736 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
737
738 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
739
740 PR 53063
741 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
742 Wreorder): Use LangEnabledBy.
743 * c-opts.c (c_common_handle_option): Do not enable them
744 explicitly. Call lang-specific generated functions.
745 (c_common_post_options): Do not set them here.
746
747 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
748
749 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
750 Wmissing-field-initializers,Wmissing-parameter-type,
751 Wold-style-declaration,Woverride-init): Use EnabledBy.
752 * c-opts.c (c_common_post_options): Do not set here explicitly.
753
754 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
755
756 PR 53063
757 * c-opts.c (c_common_handle_option): Use handle_generated_option
758 to enable sub-options.
759
760 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
761
762 PR c++/53158
763 * c-common.c (warnings_for_convert_and_check): Use warning_at.
764
765 2012-05-10 Richard Guenther <rguenther@suse.de>
766
767 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
768 adjust commentary about TYPE_IS_SIZETYPE types.
769
770 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
771
772 PR c++/53261
773 * c-common.c (warn_logical_operator): Check that argument of
774 integer_zerop is not NULL.
775
776 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
777
778 PR c/43772
779 * c-common.c (warn_logical_operator): Do not warn if either side
780 is already true or false.
781
782 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
783
784 PR c/51712
785 * c-common.c (expr_original_type): New.
786 (shorten_compare): Do not warn for enumeration types.
787
788 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
789
790 * c.opt (fpermissive): Add Var(flag_permissive).
791
792 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
793
794 PR c++/51033
795 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
796 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
797
798 2012-04-30 Dodji Seketeli <dodji@redhat.com>
799
800 Add -Wvarargs option
801 * c.opt (Wvarargs): Define new option.
802
803 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
804
805 * c-common.c (check_function_arguments): Replace
806 Wmissing-format-attribute with Wsuggest-attribute=format.
807
808 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
809
810 * c.opt (Wsuggest-attribute=format): New. Alias of
811 Wmissing-format-attribute.
812 * c-format.c (decode_format_type): Replace
813 Wmissing-format-attribute with Wsuggest-attribute=format.
814 (check_function_format): Likewise.
815
816 2012-04-27 Ollie Wild <aaw@google.com>
817
818 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
819 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
820 * c.opt: Add Wliteral-suffix.
821
822 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
823
824 PR c/44774
825 * c.opt (Wpedantic): New.
826 (pedantic): Alias Wpedantic.
827 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
828 (c_common_post_options): Likewise.
829 (sanitize_cpp_opts): Likewise.
830 * c-lex.c (interpret_float): Likewise.
831 * c-format.c (check_format_types): Likewise.
832 * c-common.c (pointer_int_sum): Likewise.
833 (c_sizeof_or_alignof_type): Likewise.
834 (c_add_case_label): Likewise.
835 (c_do_switch_warnings): Likewise.
836 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
837
838 2012-04-15 Jason Merrill <jason@redhat.com>
839
840 PR c++/52818
841 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
842 (C_STD_NAME): Distinguish between C++98 and C++11.
843
844 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
845
846 PR target/52624
847 * c-common.h (uint16_type_node): Rename into...
848 (c_uint16_type_node): ...this.
849 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
850 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
851
852 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
853
854 * c-common.c (warn_if_unused_value): Move definition to here.
855 * c-common.h (warn_if_unused_value): Move declaration to here.
856
857 2012-03-23 William Bader <williambader@hotmail.com>
858
859 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
860
861 2012-03-20 Jason Merrill <jason@redhat.com>
862
863 * c-common.h (enum cxx_dialect): Add cxx1y.
864 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
865 test.
866 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
867 * c-opts.c (c_common_post_options): Likewise.
868 (set_std_cxx1y): New.
869 (c_common_handle_option): Call it.
870 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
871
872 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
873
874 PR c++/14710
875 * c.opt ([Wuseless-cast]): Add.
876
877 2012-03-16 Richard Guenther <rguenther@suse.de>
878
879 * c-pretty-print.c (pp_c_initializer_list): Adjust.
880
881 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
882
883 PR c++/44783
884 * c.opt (ftemplate-backtrace-limit) Add.
885
886 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
887
888 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
889 handling.
890 * c-pragma.c (handle_pragma_extern_prefix): Remove.
891 (init_pragma): Don't register extern_prefix.
892
893 2012-03-12 Richard Guenther <rguenther@suse.de>
894
895 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
896 (builtin_type_for_size): Likewise.
897
898 2012-02-13 Jakub Jelinek <jakub@redhat.com>
899
900 PR c++/52215
901 * c-common.c (sync_resolve_params): Don't decide whether to convert
902 or not based on TYPE_SIZE comparison, convert whenever arg_type
903 is unsigned INTEGER_TYPE.
904
905 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
906
907 PR c/52118
908 * c.opt ([Wunused-local-typedefs]): Fix description.
909
910 2012-01-24 Mike Stump <mikestump@comcast.net>
911
912 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
913 exactly.
914
915 2012-01-18 Richard Guenther <rguenther@suse.de>
916
917 * c-opts.c (c_common_post_options): Reset LTO flags if
918 we are about to generate a PCH.
919
920 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
921
922 PR c++/51777
923 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
924 use pp_unsigned_wide_integer.
925
926 2012-01-10 Richard Guenther <rguenther@suse.de>
927
928 PR middle-end/51806
929 * c-opts.c (c_common_handle_option): Move -Werror handling
930 to language independent code.
931
932 2012-01-05 Richard Guenther <rguenther@suse.de>
933
934 PR middle-end/51764
935 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
936 from common.opt.
937
938 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
939
940 PR c++/51316
941 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
942 of array types with an unknown bound.
943
944 2011-12-20 Joseph Myers <joseph@codesourcery.com>
945
946 * c-common.c (flag_isoc99): Update comment to refer to C11.
947 (flag_isoc1x): Change to flag_isoc11.
948 * c-common.h (flag_isoc99): Update comment to refer to C11.
949 (flag_isoc1x): Change to flag_isoc11.
950 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
951 C11.
952 * c-opts.c (set_std_c1x): Change to set_std_c11.
953 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
954 Call set_std_c11.
955 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
956 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
957 * c.opt (std=c1x): Change to std=c11. Document as non-draft
958 standard.
959 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
960 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
961 (std=gnu1x): Make alias of std=gnu11.
962
963 2011-12-19 Jason Merrill <jason@redhat.com>
964
965 PR c++/51228
966 * c-common.c (handle_transparent_union_attribute): Check the first
967 field if the type is complete.
968
969 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
970
971 PR libstdc++/51365
972 * c-common.c (RID_IS_FINAL): Add.
973 * c-common.h (RID_IS_FINAL): Add.
974
975 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
976
977 * c.opt (fgnu-runtime): Provide full description.
978 (fnext-runtime): Likewise.
979 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
980
981 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
982
983 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
984 predefines in one place. Add LOCK_FREE predefines.
985 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
986 new func.
987
988 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
989
990 PR c/51256
991 * c-common.c (get_atomic_generic_size): Check for various error
992 conditions
993 (resolve_overloaded_atomic_exchange,
994 resolve_overloaded_atomic_compare_exchange,
995 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
996 error_mark_node for error conditions.
997
998 2011-11-08 Richard Guenther <rguenther@suse.de>
999
1000 PR middle-end/51010
1001 c-family/
1002
1003 2011-11-07 Richard Henderson <rth@redhat.com>
1004 Aldy Hernandez <aldyh@redhat.com>
1005 Torvald Riegel <triegel@redhat.com>
1006
1007 Merged from transactional-memory.
1008
1009 * c-common.c (handle_tm_wrap_attribute,
1010 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1011 (struct c_common_reswords): Added __transaction* keywords.
1012 (struct c_common_attribute_table): Added transaction* and tm_regparm
1013 attributes.
1014 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1015 masks.
1016 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1017 find_tm_attribute): Declare.
1018
1019 2011-11-07 Jason Merrill <jason@redhat.com>
1020
1021 PR c++/35688
1022 * c-common.c, c-common.h: Revert yesterday's changes.
1023
1024 2011-11-06 Jason Merrill <jason@redhat.com>
1025
1026 PR c++/35688
1027 * c-common.c (decl_has_visibility_attr): Split out from...
1028 (c_determine_visibility): ...here.
1029 * c-common.h: Declare it.
1030
1031 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1032
1033 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1034 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1035 type.
1036 (check_user_alignment): New. Split out of
1037 handle_aligned_attribute. Disallow integer constants with
1038 noninteger types. Conditionally allow zero.
1039 (handle_aligned_attribute): Use check_user_alignment.
1040 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1041
1042 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1043 Richard Henderson <rth@redhat.com>
1044
1045 Merged from cxx-mem-model.
1046
1047 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1048 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1049 parameters that are the same type size.
1050 (get_atomic_generic_size): New. Find size of generic
1051 atomic function parameters and do typechecking.
1052 (add_atomic_size_parameter): New. Insert size into parameter list.
1053 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1054 either __atomic_exchange_n or external library call.
1055 (resolve_overloaded_atomic_compare_exchange): Restructure
1056 __atomic_compare_exchange to either _n variant or external library call.
1057 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1058 __atomic_load_n or an external library call.
1059 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1060 __atomic_store_n or an external library call.
1061 (resolve_overloaded_builtin): Handle new __atomic builtins.
1062
1063 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1064
1065 PR c++/50608
1066 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1067 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1068 <INDIRECT_REF>: Return the argument.
1069 <ARRAY_REF>: Remove special code for negative offset.
1070 Call fold_build_pointer_plus instead of size_binop.
1071 (fold_offsetof): Remove STOP_REF argument and adjust.
1072 * c-common.h (fold_offsetof_1): Declare.
1073 (fold_offsetof): Remove STOP_REF argument.
1074
1075 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1076
1077 PR c++/50810
1078 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1079 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1080 Wnarrowing for C++0x and C++98.
1081 * c.opt ([Wnarrowing]): Update.
1082
1083 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1084
1085 PR c++/44277
1086 * c.opt: Add Wzero-as-null-pointer-constant.
1087
1088 2011-10-31 Jason Merrill <jason@redhat.com>
1089
1090 * c.opt (-fdeduce-init-list): Off by default.
1091
1092 PR c++/50920
1093 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1094 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1095 and -Wc++11-compat.
1096 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1097
1098 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1099
1100 PR c++/30066
1101 * c.opt (fvisibility-inlines-hidden): Description change.
1102
1103 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1104
1105 Implement C++11 user-defined literals.
1106 * c-common.c (build_userdef_literal): New.
1107 * c-common.def: New tree code.
1108 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1109 * c-lex.c (interpret_float): Add suffix parm.
1110 (c_lex_with_flags): Build literal tokens.
1111
1112 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1113
1114 PR c++/50841
1115 Revert:
1116 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1117
1118 PR c++/50810
1119 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1120 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1121 Wnarrowing for C++0x and C++98.
1122 * c.opt ([Wnarrowing]): Update.
1123
1124 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1125
1126 PR c++/50810
1127 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1128 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1129 Wnarrowing for C++0x and C++98.
1130 * c.opt ([Wnarrowing]): Update.
1131
1132 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1133
1134 PR c++/45385
1135 * c-common.c (conversion_warning): Remove code looking for
1136 artificial operands.
1137
1138 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1139
1140 PR bootstrap/50760
1141 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1142 !NO_IMPLICIT_EXTERN_C.
1143
1144 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1145
1146 * c-common.c (c_common_reswords): Add __bases,
1147 __direct_bases.
1148 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1149
1150 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1151
1152 PR c++/50757
1153 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1154
1155 2011-10-15 Tom Tromey <tromey@redhat.com>
1156 Dodji Seketeli <dodji@redhat.com>
1157
1158 * c.opt (fdebug-cpp): New option.
1159 * c-opts.c (c_common_handle_option): Handle the option.
1160 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1161 output stream in parameter. Factorized from ...
1162 (maybe_print_line): ... this. Dump location debug information when
1163 -fdebug-cpp is in effect.
1164 (print_line_1): New static function. Takes an output stream in
1165 parameter. Factorized from ...
1166 (print_line): ... here. Dump location information when -fdebug-cpp
1167 is in effect.
1168 (scan_translation_unit): Dump location information when
1169 -fdebug-cpp is in effect.
1170
1171 2011-10-15 Tom Tromey <tromey@redhat.com>
1172 Dodji Seketeli <dodji@redhat.com>
1173
1174 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1175 without argument.
1176 * c-opts.c (c_common_handle_option)<case
1177 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1178 cases. Handle -ftrack-macro-expansion with and without argument.
1179
1180 2011-10-15 Tom Tromey <tromey@redhat.com>
1181 Dodji Seketeli <dodji@redhat.com>
1182
1183 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1184 (print_line, cb_define, do_line_change): Adjust to avoid touching
1185 the internals of struct line_map. Use the public API instead.
1186 * c-pch.c (c_common_read_pch): Likewise.
1187 * c-lex.c (fe_file_change): Likewise.
1188
1189 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1190
1191 PR c++/17212
1192 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1193
1194 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1195
1196 PR c++/33067
1197 * c-pretty-print.c (pp_c_floating_constant): Output
1198 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1199
1200 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1201
1202 * c-common.c (def_builtin_1): Delete old interface with two
1203 parallel arrays to hold standard builtin declarations, and replace
1204 it with a function based interface that can support creating
1205 builtins on the fly in the future. Change all uses, and poison
1206 the old names. Make sure 0 is not a legitimate builtin index.
1207 * c-omp.c (c_finish_omp_barrier): Ditto.
1208 (c_finish_omp_taskwait): Ditto.
1209 (c_finish_omp_flush): Ditto.
1210
1211 2011-10-11 Tristan Gingold <gingold@adacore.com>
1212
1213 * c.opt: (fallow-parameterless-variadic-functions): New.
1214
1215 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1216
1217 PR c++/33255 - Support -Wunused-local-typedefs warning
1218 * c-common.h (struct c_language_function::local_typedefs): New
1219 field.
1220 (record_locally_defined_typedef, maybe_record_typedef_use)
1221 (maybe_warn_unused_local_typedefs): Declare new functions.
1222 * c-common.c (record_locally_defined_typedef)
1223 (maybe_record_typedef_use)
1224 (maybe_warn_unused_local_typedefs): Define new functions.
1225 * c.opt: Declare new -Wunused-local-typedefs flag.
1226
1227 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1228
1229 PR middle-end/50266
1230 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1231 computations.
1232
1233 2011-09-05 Richard Guenther <rguenther@suse.de>
1234
1235 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1236 of integer_minus_one_node for empty array upper bounds.
1237
1238 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1239
1240 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1241 it's the first time it's being called on this main TU.
1242
1243 2011-08-24 Richard Guenther <rguenther@suse.de>
1244
1245 PR c/49396
1246 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1247
1248 2011-08-22 Gabriel Charette <gchare@google.com>
1249
1250 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1251 defined in cpp_init_builtins and c_cpp_builtins.
1252
1253 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1254
1255 * c-common.c (c_common_reswords): Add __builtin_complex.
1256 * c-common.h (RID_BUILTIN_COMPLEX): New.
1257
1258 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1259
1260 * c-common.c (c_common_reswords): Add _Noreturn.
1261 (keyword_is_function_specifier): Handle RID_NORETURN.
1262 * c-common.h (RID_NORETURN): New.
1263
1264 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1265
1266 * c-common.c (unsafe_conversion_p): New function. Check if it is
1267 unsafe to convert an expression to the type.
1268 (conversion_warning): Adjust, use unsafe_conversion_p.
1269 * c-common.h (unsafe_conversion_p): New function declaration.
1270
1271 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1272
1273 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1274 (c_finish_omp_taskyield): New prototype.
1275 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1276 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1277 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1278 or RHS1 have side-effects, evaluate those too in the right spot,
1279 if it is a decl and LHS is also a decl, error out if they
1280 aren't the same.
1281 (c_finish_omp_taskyield): New function.
1282 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1283 * c-pragma.c (omp_pragmas): Add taskyield.
1284 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1285 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1286 PRAGMA_OMP_CLAUSE_MERGEABLE.
1287
1288 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1289
1290 * c-common.h (set_underlying_type): Remove parm name from
1291 declaration.
1292
1293 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1294
1295 * c-pretty-print.h: Search c-common.h in c-family.
1296
1297 2011-07-22 Jason Merrill <jason@redhat.com>
1298
1299 PR c++/49793
1300 * c.opt (Wnarrowing): New.
1301
1302 PR c++/30112
1303 * c-common.h: Declare c_linkage_bindings.
1304 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1305
1306 PR c++/49813
1307 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1308 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1309 as flag_isoc99 for 'restrict'.
1310 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1311
1312 2011-07-21 Ian Lance Taylor <iant@google.com>
1313
1314 PR middle-end/49705
1315 * c-common.c (c_disable_warnings): New static function.
1316 (c_enable_warnings): New static function.
1317 (c_fully_fold_internal): Change local unused_p to bool. Call
1318 c_disable_warnings and c_enable_warnings rather than change
1319 c_inhibit_evaluation_warnings.
1320
1321 2011-07-20 Jason Merrill <jason@redhat.com>
1322
1323 PR c++/6709 (DR 743)
1324 PR c++/42603 (DR 950)
1325 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1326 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1327 (CPP_DECLTYPE): New.
1328 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1329
1330 2011-07-19 Richard Guenther <rguenther@suse.de>
1331
1332 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1333 * c-omp.c (c_finish_omp_for): Likewise.
1334
1335 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1336
1337 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1338 body on the next line.
1339
1340 2011-07-08 Jason Merrill <jason@redhat.com>
1341
1342 PR c++/45437
1343 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1344
1345 PR c++/49673
1346 * c-common.c (c_apply_type_quals_to_decl): Don't check
1347 TYPE_NEEDS_CONSTRUCTING.
1348
1349 2011-07-06 Richard Guenther <rguenther@suse.de>
1350
1351 * c-common.c (c_common_nodes_and_builtins):
1352 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1353
1354 2011-07-05 Richard Guenther <rguenther@suse.de>
1355
1356 * c-common.c (c_common_nodes_and_builtins): Build all common
1357 tree nodes first.
1358
1359 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1360
1361 * c-common.h (c_tree_chain_next): New static inline function.
1362
1363 * c-common.c (check_builtin_function_arguments): Handle
1364 BUILT_IN_ASSUME_ALIGNED.
1365
1366 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1367
1368 * c-common.c: Add sync_ or SYNC__ to builtin names.
1369 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1370
1371 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1372
1373 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1374 handler.
1375 (gen_pragma_handler): New union.
1376 (internal_pragma_handler): New type.
1377 (c_register_pragma_with_data)
1378 (c_register_pragma_with_expansion_and_data): New functions.
1379
1380 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1381 (c_register_pragma, c_register_pragma_with_expansion)
1382 (c_invoke_pragma_handler): Changed to work with
1383 internal_pragma_handler.
1384 (c_register_pragma_with_data)
1385 (c_register_pragma_with_expansion_and_data): New functions.
1386
1387 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1388
1389 * c-common.c: Include common/common-target.h.
1390 (handle_section_attribute): Use
1391 targetm_common.have_named_sections.
1392 * c-cppbuiltin.c: Include common/common-target.h.
1393 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1394
1395 2011-06-10 Richard Guenther <rguenther@suse.de>
1396
1397 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1398 to print a IDENTIFIER_NODE.
1399
1400 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1401 Joseph Myers <joseph@codesourcery.com>
1402
1403 * c.opt (fbuilding-libgcc): New option.
1404 * c-cppbuiltin.c (c_cpp_builtins): Define
1405 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1406
1407 2011-06-07 Jason Merrill <jason@redhat.com>
1408
1409 * c-common.c (max_tinst_depth): Lower default to 900.
1410
1411 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1412
1413 2011-06-07 Richard Guenther <rguenther@suse.de>
1414
1415 * c-common.c (c_common_nodes_and_builtins): Do not set
1416 size_type_node or call set_sizetype.
1417
1418 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1419
1420 PR debug/49130
1421 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1422 type when using pointer comparison to compare types.
1423
1424 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1425
1426 * c.opt: Add -Wdelete-non-virtual-dtor.
1427 * c-opts.c (c_common_handle_option): Include it in -Wall.
1428
1429 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1430
1431 PR bootstrap/49190
1432
1433 Revert:
1434 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1435
1436 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1437 not tree_common.
1438
1439 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1440
1441 PR c++/49165
1442 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1443 C++ don't call c_common_truthvalue_conversion on void type arms.
1444
1445 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1446
1447 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1448 (stmt_list_stack): Define.
1449 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1450 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1451
1452 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1453
1454 * c-common.c (warning_candidate_p): Check for BLOCKs.
1455
1456 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1457
1458 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1459 not tree_common.
1460
1461 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1462
1463 * c-common.c (def_fn_type): Remove extra va_end.
1464
1465 2011-05-23 Jason Merrill <jason@redhat.com>
1466
1467 PR c++/48106
1468 * c-common.c (c_common_get_narrower): New.
1469 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1470
1471 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1472
1473 * c-common.h (check_function_arguments): Tweak prototype of
1474 check_function_arguments.
1475 * c-common.c (check_function_arguments): Likewise. Adjust
1476 calls to check_function_nonnull, check_function_format, and
1477 check_function_sentinel.
1478 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1479 separate attributes and typelist arguments. Use
1480 FOREACH_FUNCTION_ARGS to iterate over argument types.
1481
1482 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1483
1484 * c-common.c (c_common_reswords): Reorder.
1485 * c-common.h (rid): Likewise.
1486
1487 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1488
1489 * c-common.c (def_fn_type): Don't call build_function_type, call
1490 build_function_type_array or build_varargs_function_type_array
1491 instead.
1492 (c_common_nodes_and_builtins): Likewise.
1493
1494 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1495
1496 * c-common.c (c_add_case_label): Omit the loc argument to
1497 build_case_label.
1498 * c-common.h (build_case_label): Remove.
1499 * c-semantics.c (build_case_label): Remove.
1500
1501 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1502
1503 * c-objc.h (objc_start_method_definition): Update prototype.
1504 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1505
1506 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1507
1508 * c-common.c (check_main_parameter_types): Reindent. Don't use
1509 TYPE_ARG_TYPES directly.
1510 (handle_nonnull_attribute): Likewise.
1511 (sync_resolve_params): Likewise.
1512 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1513 to check_format_string.
1514 (handle_format_attribute): Likewise.
1515 (check_format_string): Take a function type to examine instead of
1516 a type list. Use a function_arg_iterator to step through argument
1517 types.
1518
1519 2011-05-04 Richard Guenther <rguenther@suse.de>
1520
1521 * c-common.c (fix_string_type): Use size_int for index type bounds.
1522 (start_fname_decls): Do not pass NULL to build_int_cst.
1523 (c_init_attributes): Likewise.
1524 * c-lex.c (c_lex_with_flags): Likewise.
1525
1526 2011-04-27 Jason Merrill <jason@redhat.com>
1527
1528 * c-common.c (make_tree_vector_from_list): New.
1529 * c-common.h: Declare it.
1530
1531 2011-04-26 Richard Guenther <rguenther@suse.de>
1532
1533 PR preprocessor/48248
1534 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1535 for output size with -P.
1536
1537 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1538
1539 * c-common.c (struct c_common_resword): Add __underlying_type.
1540 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1541
1542 2011-04-20 Jim Meyering <meyering@redhat.com>
1543
1544 * c-format.c (init_dollar_format_checking): Remove useless
1545 if-before-free.
1546
1547 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1548
1549 * c-objc.h (objc_get_interface_ivars): Removed.
1550 (objc_detect_field_duplicates): New.
1551 * stub-objc.c: Likewise.
1552
1553 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1554
1555 * stub-objc.c (objc_declare_protocols): Renamed to
1556 objc_declare_protocol.
1557 * c-objc.h: Likewise.
1558
1559 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1560
1561 * stub-objc.c (objc_declare_class): Updated argument name.
1562
1563 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1564
1565 * c-common.h (c_common_init_ts): Declare.
1566 * c-common.c (c_common_init_ts): Define.
1567
1568 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1569
1570 * c-objc.h (objc_build_message_expr): Updated prototype.
1571 * stub-objc.c (objc_build_message_expr): Likewise.
1572
1573 2011-04-12 Martin Jambor <mjambor@suse.cz>
1574
1575 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1576 of cgraph_node.
1577
1578 2011-04-11 Richard Guenther <rguenther@suse.de>
1579
1580 * c-common.c (complete_array_type): Build a range type of
1581 proper type.
1582
1583 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1584
1585 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1586 (handle_type_generic_attribute): Likewise.
1587
1588 2011-04-07 Jason Merrill <jason@redhat.com>
1589
1590 PR c++/48450
1591 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1592 conversion from C++0x scoped enum.
1593
1594 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1595
1596 * c-target-def.h: New file.
1597 * c-target.def: New file.
1598 * c-target.h: New file.
1599 * c-common.c (targetcm): Don't define here.
1600 * c-common.h (default_handle_c_option): Declare.
1601 * c-format.c: Include c-target.h instead of target.h.
1602 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1603 include tm.h.
1604 (default_handle_c_option): Move from targhooks.c.
1605
1606 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1607
1608 PR preprocessor/48248
1609 * c-ppoutput.c (print): Add src_file field.
1610 (init_pp_output): Initialize it.
1611 (maybe_print_line): Don't optimize by adding up to 8 newlines
1612 if map->to_file and print.src_file are different file.
1613 (print_line): Update print.src_file.
1614
1615 2011-03-25 Kai Tietz <ktietz@redhat.com>
1616
1617 * c-ada-spec.c (compare_comment): Use filename_cmp
1618 instead of strcmp for filename.
1619
1620 2011-03-25 Jeff Law <law@redhat.com>
1621
1622 * c-family/c-common.c (def_fn_type): Add missing va_end.
1623
1624 2011-03-25 Jason Merrill <jason@redhat.com>
1625
1626 * c.opt: Add -std=c++03.
1627
1628 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1629
1630 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1631
1632 2011-03-17 Kai Tietz
1633
1634 PR target/12171
1635 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1636 Display allowed attributes for function pointer types.
1637 (pp_c_attributes_display): New function to display
1638 attributes having affects_type_identity flag set to true.
1639 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1640
1641 * c-common.c (c_common_attribute_table):
1642 Add new element.
1643 (c_common_format_attribute_table): Likewise.
1644
1645 2011-03-18 Jason Merrill <jason@redhat.com>
1646
1647 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1648 * c-common.h: Don't declare it here.
1649 * c-common.c: Or define it here.
1650 * c-opts.c (c_common_handle_option): Or set it here.
1651
1652 PR c++/35315
1653 * c-common.c (handle_transparent_union_attribute): Don't
1654 make a duplicate type in C++.
1655
1656 2011-03-15 Jason Merrill <jason@redhat.com>
1657
1658 * c-common.c (max_constexpr_depth): New.
1659 * c-common.h: Declare it.
1660 * c-opts.c (c_common_handle_option): Set it.
1661 * c.opt (fconstexpr-depth): New option.
1662
1663 2011-03-11 Jason Merrill <jason@redhat.com>
1664
1665 * c-common.c (attribute_takes_identifier_p): Add missing const.
1666
1667 PR c++/46803
1668 * c-common.c (attribute_takes_identifier_p): Assume that an
1669 unknown attribute takes an identifier.
1670
1671 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1672
1673 PR c/47786
1674 * c-common.c (c_type_hash): Call list_length instead of iterating
1675 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1676
1677 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1678
1679 PR c/47809
1680 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1681
1682 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1683
1684 * c.opt (fobjc-abi-version=) New.
1685 (fobjc-nilcheck): New.
1686
1687 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1688
1689 PR c++/46890
1690 * c-common.h (keyword_is_decl_specifier): Declare.
1691 * c-common.c (keyword_is_decl_specifier): Define.
1692 (keyword_is_function_specifier): New function.
1693
1694 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1695
1696 PR c/47473
1697 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1698 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1699 REAL_TYPE.
1700
1701 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1702
1703 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1704
1705 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1706
1707 PR pch/47430
1708 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1709 after init_c_lex if pch_file is set.
1710
1711 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1712
1713 PR c++/43601
1714 * c.opt (-fkeep-inline-dllexport): New switch.
1715
1716 2011-01-12 Richard Guenther <rguenther@suse.de>
1717
1718 PR middle-end/32511
1719 * c-common.c (handle_weak_attribute): Warn instead of error
1720 on declaring an inline function weak.
1721
1722 2011-01-05 Tom Tromey <tromey@redhat.com>
1723
1724 * c-common.h (lvalue_error): Update.
1725 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1726 not error.
1727
1728 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1729
1730 PR objc/47075
1731 * c-objc.h (objc_finish_message_expr): Added argument to
1732 prototype.
1733
1734 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1735
1736 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1737 Use prototype_p.
1738
1739 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1740
1741 * c-objc.h (objc_maybe_warn_exceptions): New.
1742 * stub-objc.c (objc_maybe_warn_exceptions): New.
1743
1744 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1745
1746 * c-common.h (readonly_error): Declare.
1747 * c-common.c (readonly_error): Define.
1748
1749 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1750
1751 * c-common.h (invalid_indirection_error): Declare.
1752 * c-common.c (invalid_indirection_error): Define.
1753
1754 2010-12-03 Richard Guenther <rguenther@suse.de>
1755
1756 PR c/46745
1757 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1758 (pp_c_unary_expression): Likewise.
1759 (pp_c_expression): Likewise.
1760
1761 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1762
1763 * c-common.h (objc_finish_function): New.
1764 (objc_non_volatilized_type): Removed.
1765 (objc_type_quals_match): Removed.
1766 * stub-objc.c (objc_finish_function): New.
1767 (objc_non_volatilized_type): Removed.
1768 (objc_type_quals_match): Removed.
1769
1770 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1771
1772 * c-common.h (parse_optimize_options): Declare.
1773 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1774 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1775
1776 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1777
1778 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1779 GET_ENVIRONMENT.
1780 * c-pch.c (O_BINARY): Don't define here.
1781 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1782
1783 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1784
1785 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1786 targetm.except_unwind_info.
1787
1788 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1789
1790 * c-opts.c (c_common_handle_option): Pass location to
1791 set_struct_debug_option.
1792
1793 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1794
1795 * c-common.c (visibility_options): Move from ../opts.c.
1796 * c-common.h (struct visibility_flags, visibility_options):
1797 Declare here.
1798 * c-opts.c (finish_options): Rename to c_finish_options.
1799 (c_common_init): Update call to finish_options.
1800
1801 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1802
1803 PR objc/34033
1804 * c-lex.c (lex_string): Check that each string in an Objective-C
1805 string concat sequence starts with either one or zero '@', and
1806 that there are no spurious '@' signs at the end.
1807
1808 2010-11-20 Joseph Myers <joseph@codesourcery.com>
1809
1810 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1811 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1812 HANDLE_PRAGMA_VISIBILITY.
1813 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1814 HANDLE_PRAGMA_VISIBILITY): Don't define.
1815 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1816
1817 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1818
1819 PR c++/16189
1820 PR c++/36888
1821 PR c++/45331
1822 * c-common.h (keyword_begins_type_specifier): Declare.
1823 (keyword_is_storage_class_specifier): Declare.
1824 (keyword_is_type_qualifier): Declare.
1825 * c-common.c (keyword_begins_type_specifier): New function.
1826 (keyword_is_storage_class_specifier): New function.
1827 (keyword_is_type_qualifier): Declare.
1828
1829 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1830
1831 PR c/46547
1832 * c-common.c (in_late_binary_op): Define.
1833 (c_common_truthvalue_conversion): Check in_late_binary_op before
1834 calling c_save_expr.
1835 * c-common.h (in_late_binary_op): Declare.
1836
1837 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1838
1839 * c-opts.c (c_common_handle_option): Update calls to
1840 set_struct_debug_option.
1841
1842 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1843
1844 * c-common.h (objc_declare_protocols): Added additional argument.
1845 * stub-objc.c (objc_declare_protocol): Same change.
1846
1847 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1848
1849 PR c/33193
1850 * c-common.h (build_real_imag_expr): Declare.
1851 * c-semantics.c (build_real_imag_expr): Define.
1852
1853 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1854
1855 * c-opts.c (c_common_parse_file): Take no arguments.
1856 * c-common.h (c_common_parse_file): Update prototype.
1857
1858 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1859
1860 PR c++/46401
1861 * c-common.c (warning_candidate_p): Don't track non-const calls
1862 or STRING_CSTs.
1863
1864 2010-11-15 Ian Lance Taylor <iant@google.com>
1865
1866 * c-lex.c (init_c_lex): Set macro debug callbacks if
1867 flag_dump_go_spec is set.
1868
1869 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1870
1871 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1872 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1873
1874 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1875
1876 PR preprocessor/45038
1877 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1878 dialects.
1879
1880 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1881
1882 * c-common.h (c_family_lang_mask): Declare.
1883 * c-opts.c (c_family_lang_mask): Make extern.
1884 * c-pragma.c (handle_pragma_diagnostic): Use
1885 control_warning_option.
1886
1887 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1888
1889 * c-common.c (parse_optimize_options): Update call to
1890 decode_options.
1891 * c-common.h (c_common_handle_option): Update prototype.
1892 * c-opts.c (c_common_handle_option): Take location_t parameter and
1893 pass it to other functions.
1894
1895 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1896
1897 * c-opts.c (warning_as_error_callback): Remove.
1898 (c_common_initialize_diagnostics): Don't call
1899 register_warning_as_error_callback.
1900 (c_common_handle_option): Handle -Werror=normalized= here.
1901
1902 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1903
1904 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1905 in diagnostic.
1906 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1907 letter.
1908 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1909 Remove trailing '.' from diagnostics.
1910 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1911
1912 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1913
1914 * c-common.c (parse_optimize_options): Pass global_dc to
1915 decode_options.
1916 * c-opts.c (c_common_handle_option): Pass &global_options to
1917 set_Wstrict_aliasing.
1918 * c.opt (v): Don't mark Common or document here.
1919
1920 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1921
1922 PR target/44981
1923 * c-format.c (format_type): New type gcc_objc_string_format_type.
1924 (valid_stringptr_type_p): New.
1925 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1926 (check_format_string): Pass expected type, use
1927 valid_stringptr_type_p (), check that the format string types are
1928 consistent with the format specification.
1929 (decode_format_attr): Warn if NSString is used outside objective-c.
1930 (format_types_orig): Add NSString.
1931 (format_name): New.
1932 (format_flags): New.
1933 (check_format_arg): Handle format strings requiring an external parser.
1934 first_target_format_type: New variable.
1935 (handle_format_attribute): Set up first_target_format_type, pass the
1936 expected format arg string type to check_format_string().
1937 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1938 * stub-objc.c (objc_string_ref_type_p): New.
1939 (objc_check_format_arg): New.
1940
1941 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1942
1943 Fixed using the Objective-C 2.0 dot-syntax with class names.
1944 * c-common.h (objc_build_class_component_ref): New.
1945 * stub-objc.c (objc_build_class_component_ref): New.
1946
1947 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1948
1949 * c.opt (Wproperty-assign-default): New option.
1950
1951 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1952
1953 Implemented -fobjc-std=objc1 flag.
1954 * c.opt (fobjc-std=objc1): New option.
1955
1956 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1957
1958 Implemented format and noreturn attributes for Objective-C methods.
1959 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1960 attribute for Objective-C methods.
1961
1962 2010-10-31 Jason Merrill <jason@redhat.com>
1963
1964 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1965 EXPR_LOC_OR_HERE.
1966
1967 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1968
1969 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1970 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1971 (objc_add_property_declaration): Removed arguments for copies and
1972 ivar.
1973 (objc_build_getter_call): Renamed to
1974 objc_maybe_build_component_ref.
1975 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1976 (objc_is_property_ref): New.
1977 * c-common.c (c_common_reswords): Removed copies and ivar.
1978 * stub-objc.c (objc_add_property_declaration): Removed arguments
1979 for copies and ivar.
1980 (objc_build_getter_call): Renamed to
1981 objc_maybe_build_component_ref.
1982 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1983 (objc_is_property_ref): New.
1984
1985 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1986 Matthew Gingell <gingell@adacore.com>
1987
1988 * c-ada-spec.c (separate_class_package): New function.
1989 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1990 name of their enclosing package.
1991 (print_ada_declaration): Use separate_class_package.
1992
1993 2010-10-27 Jason Merrill <jason@redhat.com>
1994
1995 * c-common.c (c_common_reswords): Add __is_literal_type.
1996 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1997
1998 * c-common.c (check_case_value): Remove special C++ code.
1999
2000 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2001
2002 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2003 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2004 and RID_LAST_PATTR.
2005 (objc_add_property_declaration): Added additional arguments.
2006 (objc_property_attribute_kind): Removed.
2007 (objc_set_property_attr): Removed.
2008 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2009 copy and nonatomic.
2010 * stub-objc.c (objc_add_property_declaration): Added additional
2011 arguments.
2012 (objc_set_property_attr): Removed.
2013
2014 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2015
2016 * c-common.h (objc_add_property_variable): Renamed to
2017 objc_add_property_declaration. Added location argument.
2018 * stub-objc.c (objc_add_property_variable): Same change.
2019
2020 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2021
2022 * c-common.h (objc_maybe_printable_name): New.
2023 * stub-objc.c (objc_maybe_printable_name): New.
2024
2025 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2026 Andrew Pinski <pinskia@gmail.com>
2027
2028 * c-common.h (c_common_mark_addressable_vec): Declare.
2029 * c-common.c (c_common_mark_addressable_vec): New function.
2030
2031 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2032
2033 * c-common.h (objc_set_method_type): Removed.
2034 (objc_add_method_declaration): Added boolean argument.
2035 (objc_start_method_definition): Same change.
2036 (objc_build_method_signature): Same change.
2037 * stub-objc.c (objc_set_method_type): Removed.
2038 (objc_add_method_declaration): Added boolean argument.
2039 (objc_start_method_definition): Same change.
2040 (objc_build_method_signature): Same change.
2041
2042 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2043
2044 * c-common.h (finish_file): Removed.
2045 (objc_write_global_declarations): New.
2046 * c-opts.c (c_common_parse_file): Do not call finish_file.
2047 * stub-objc.c (objc_write_global_declarations): New.
2048
2049 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2050
2051 Implemented parsing @synthesize and @dynamic for
2052 Objective-C/Objective-C++.
2053 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2054 (objc_add_synthesize_declaration): New.
2055 (objc_add_dynamic_declaration): New.
2056 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2057 * stub-objc.c (objc_add_synthesize_declaration): New.
2058 (objc_add_dynamic_declaration): New.
2059
2060 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2061
2062 PR target/46041
2063 * c-cppbuiltin.c (mode_has_fma): Move function here from
2064 builtins.c. Don't use the fma optab, instead just use the
2065 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2066 using -save-temps.
2067
2068 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2069
2070 Merge from 'apple/trunk' branch on FSF servers.
2071
2072 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2073
2074 Radar 4330422
2075 * c-common.h (objc_non_volatilized_type): New declaration
2076 * stub-objc.c (objc_non_volatilized_type): New stub.
2077
2078 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2079
2080 Merge from 'apple/trunk' branch on FSF servers.
2081
2082 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2083
2084 Radar 4133425
2085 * c-common.h (objc_diagnose_private_ivar): New decl.
2086 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2087
2088 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2089
2090 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2091 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2092 (objc_ivar_visibility_kind): New enum.
2093 (objc_set_visibility): Adjust prototype to use visibility enum.
2094 * stub-objc.c (objc_set_visibility): Adjust stub to use
2095 visibility enum.
2096
2097 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2098
2099 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2100 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2101 has the appropriate fma builtins.
2102 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2103
2104 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2105
2106 merge from FSF apple 'trunk' branch.
2107 2006 Fariborz Jahanian <fjahanian@apple.com>
2108
2109 Radars 4436866, 4505126, 4506903, 4517826
2110 * c-common.c (c_common_resword): Define @property and its attributes.
2111 * c-common.h: Define property attribute enum entries.
2112 (OBJC_IS_PATTR_KEYWORD): New.
2113 (objc_property_attribute_kind): New enum.
2114 Declare objc_set_property_attr (), objc_add_property_variable (),
2115 objc_build_getter_call () and objc_build_setter_call ().
2116 * stub-objc.c (objc_set_property_attr): New stub.
2117 (objc_add_property_variable): Likewise.
2118 (objc_build_getter_call): Likewise.
2119 (objc_build_setter_call) Likewise.
2120
2121 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2122
2123 merge from FSF apple 'trunk' branch.
2124 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2125
2126 Radar 3803157 (method attributes)
2127 * c-common.c (handle_deprecated_attribute): Recognize
2128 objc methods as valid declarations.
2129 * c-common.h: Declare objc_method_decl ().
2130 * stub-objc.c (objc_method_decl): New stub.
2131
2132 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2133
2134 * c-common.c (parse_optimize_options): Call
2135 decode_cmdline_options_to_array_default_mask before
2136 decode_options. Update arguments to decode_options.
2137 * c-common.h (c_common_init_options_struct): Declare.
2138 * c-opts.c (c_common_init_options_struct): New. Split out from
2139 c_common_init_options.
2140
2141 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2142
2143 Implemented fast enumeration for Objective-C.
2144 * c-common.h (objc_finish_foreach_loop): New.
2145 * stub-objc.c (objc_finish_foreach_loop): New.
2146
2147 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2148
2149 * c-common.h (struct diagnostic_context): Don't declare here.
2150 (c_common_initialize_diagnostics): Declare using
2151 diagnostic_context typedef.
2152 * c-opts.c (c_common_handle_option): Pass global_dc to
2153 handle_generated_option.
2154
2155 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2156
2157 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2158 handle_generated_option.
2159
2160 2010-10-03 Ian Lance Taylor <iant@google.com>
2161
2162 * c.opt (-fplan9-extensions): New option.
2163
2164 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2165
2166 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2167 Remove.
2168 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2169 of duplicating code.
2170
2171 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2172
2173 * c-common.c: Add two new entries for @optional
2174 and @required keywords.
2175
2176 merge from FSF 'apple/trunk' branch.
2177 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2178
2179 Radar 4386773
2180 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2181 objective-c keywords.
2182 (objc_set_method_opt): New declaration.
2183 * stub-objc.c (objc_set_method_opt): New stub.
2184
2185 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2186
2187 * c-common.c (handle_optimize_attribute): Pass &global_options to
2188 cl_optimization_save and cl_optimization_restore.
2189 * c-opts.c (c_common_handle_option): Pass &global_options to
2190 handle_generated_option.
2191 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2192 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2193 &global_options to cl_optimization_restore.
2194
2195 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2196
2197 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2198 Objective-C/Objective-C++ keywords.
2199
2200 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2201
2202 Merge from 'apple/trunk' branch on FSF servers.
2203
2204 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2205
2206 Radar 4281748
2207 * c-common.h (objc_check_global_decl): New declaration.
2208 * stub-objc.c (objc_check_global_decl): New stub.
2209
2210 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2211
2212 * c.opt: Don't use VarExists.
2213
2214 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2215
2216 * c-common.c (c_cpp_error): Update names of diagnostic_context
2217 members.
2218 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2219 cl_optimization members.
2220 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2221 sanitize_cpp_opts, finish_options): Update names of cpp_options
2222 members.
2223
2224 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2225
2226 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2227 (objc_is_reserved_word): Removed.
2228 * c-common.c: Updated comments.
2229 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2230 objc_is_reserved_word.
2231 * stub-objc.c (objc_is_reserved_word): Removed.
2232
2233 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2234
2235 * c-common.h (objc_add_method_declaration): Adjust prototype to
2236 include attributes.
2237 (objc_start_method_definition): Likewise.
2238 (objc_build_keyword_decl): Likewise.
2239 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2240 (objc_start_method_definition): Likewise.
2241 (objc_build_keyword_decl): Likewise.
2242
2243 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2244
2245 * c-common.h (objc_start_class_interface): Adjust prototype.
2246 (objc_start_category_interface): Likewise.
2247 (objc_start_protocol): Likewise.
2248 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2249 (objc_start_class_interface): Likewise.
2250 (objc_start_category_interface): Likewise.
2251
2252 2010-09-27 Ian Lance Taylor <iant@google.com>
2253
2254 * c-common.c (c_common_attribute_table): Add no_split_stack.
2255 (handle_no_split_stack_attribute): New static function.
2256
2257 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2258
2259 Merge from 'apple/trunk' branch on FSF servers.
2260
2261 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2262
2263 Radar 4229905
2264 * c-common.h (objc_have_common_type): New declaration.
2265 * stub-objc.c (objc_have_common_type): New stub.
2266
2267 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2268
2269 Radar 4154928
2270 * c-common.h (objc_common_type): New prototype.
2271 * stub-objc.c (objc_common_type): New stub.
2272
2273 2010-09-24 Jan Hubicka <jh@suse.cz>
2274
2275 * c-common.c (handle_leaf_attribute): New function.
2276 (struct attribute_spec c_common_att): Add leaf.
2277
2278 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2279
2280 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2281 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2282 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2283 -include-barrier, -include-directory, -include-directory=,
2284 -include-directory-after, -include-directory-after=,
2285 -include-prefix, -include-prefix=, -include-with-prefix,
2286 -include-with-prefix=, -include-with-prefix-after,
2287 -include-with-prefix-after=, -include-with-prefix-before,
2288 -include-with-prefix-before=, -no-integrated-cpp,
2289 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2290 -output=, -pedantic, -pedantic-errors, -preprocess,
2291 -print-missing-file-dependencies, -trace-includes, -traditional,
2292 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2293 -user-dependencies, -verbose, -write-dependencies,
2294 -write-user-dependencies, no-integrated-cpp, traditional): New.
2295
2296 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2297
2298 PR objc/23710
2299 * c-common.h (objc_start_method_definition): Return bool instead
2300 of void.
2301 * stub-objc.c (objc_start_method_definition): Return bool instead
2302 of void.
2303
2304 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2305
2306 PR objc/25965
2307 * c-common.h (objc_get_interface_ivars): New declaration.
2308 * stub-objc.c (objc_get_interface_ivars): New stub.
2309
2310 2010-09-15 Ian Lance Taylor <iant@google.com>
2311
2312 * c-common.c (parse_optimize_options): Do not capitalize warning
2313 messages. Remove period at end of warning message.
2314
2315 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2316
2317 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2318 (handle_alias_attribute): ... here.
2319 (handle_ifunc_attribute): New.
2320
2321 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2322
2323 * c-common.h (do_warn_double_promotion): Declare.
2324 * c-common.c (do_warn_double_promotion): Define.
2325
2326 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2327
2328 * c.opt (Wdouble-promotion): New.
2329
2330 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2331
2332 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2333 fvtable-thunks, fxref): Mark no longer supported in help text.
2334
2335 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2336
2337 * c.opt (Wimport, fall-virtual, falt-external-templates,
2338 fdefault-inline, fenum-int-equiv, fexternal-templates,
2339 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2340 fname-mangling-version-, fnew-abi, fnonnull-objects,
2341 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2342 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2343 applicable.
2344 (fhandle-exceptions): Mark with Alias and Warn.
2345 * c-opts.c (c_common_handle_option): Don't handle options marked
2346 as ignored.
2347
2348 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2349
2350 * c.opt (Wcomments, Werror-implicit-function-declaration,
2351 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2352 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2353 aliases.
2354 * c-common.c (option_codes): Use OPT_Wcomment instead of
2355 OPT_Wcomments.
2356 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2357 Don't handle options marked as aliases.
2358
2359 2010-08-25 Richard Guenther <rguenther@suse.de>
2360
2361 * c-common.c (c_common_get_alias_set): Remove special
2362 handling for pointers.
2363
2364 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2365
2366 * c-common.c: Use FOR_EACH_VEC_ELT.
2367 * c-gimplify.c: Likewise.
2368 * c-pragma.c: Likewise.
2369
2370 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2371
2372 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2373 RejectDriver.
2374 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2375 RejectDriver.
2376 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2377 instead of OPT_MDX and OPT_MMDX.
2378
2379 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2380
2381 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2382
2383 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2384
2385 * c.opt (MD, MMD): Change to MDX and MMDX.
2386 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2387
2388 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2389
2390 * c-opts.c (c_common_handle_option): Call handle_generated_option
2391 instead of handle_option.
2392
2393 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2394
2395 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2396 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2397
2398 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2399
2400 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2401 (pending_redefine_extname): Change type to a VEC.
2402 (add_to_renaming_pragma_list): Update for new type of
2403 pending_redefine_extname.
2404 (maybe_apply_renaming_pragma): Likewise.
2405
2406 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2407
2408 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2409 visited.
2410 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2411 decide whether a type has already been declared/seen.
2412 Do not go to the original type.
2413 (dump_nested_types): New parameter forward.
2414 Generate forward declaration if needed and mark type as visited.
2415 (print_ada_declaration): Call dump_nested_types if not already done.
2416 Mark types as visited.
2417
2418 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2419
2420 * c.opt (-print-pch-checksum): Remove option.
2421 * c-opts.c (c_common_handle_option): Don't handle
2422 OPT_print_pch_checksum.
2423
2424 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2425
2426 * c-common.h (c_common_handle_option): Update prototype and return
2427 value type.
2428 * c-opts.c (c_common_handle_option): Update prototype and return
2429 value type. Update calls to handle_option and
2430 enable_warning_as_error.
2431
2432 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2433
2434 PR c/45079
2435 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2436
2437 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2438
2439 * c-common.h (c_common_missing_argument): Remove.
2440 * c-opts.c (c_common_missing_argument): Remove.
2441 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2442 idirafter, imacros, include, isysroot, isystem, iquote): Add
2443 MissingArgError.
2444 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2445
2446 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2447
2448 * c-common.h (c_common_option_lang_mask,
2449 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2450 New.
2451 (c_common_init_options): Update prototype.
2452 * c-opts.c (c_common_option_lang_mask): New.
2453 (c_common_initialize_diagnostics): Split out of
2454 c_common_init_options.
2455 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2456 New.
2457 (c_common_init_options): Update prototype. Use decoded options in
2458 search for -lang-asm.
2459
2460 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2461
2462 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2463 * c-format.c: Likewise.
2464
2465 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2466
2467 * c-common.h: Include diagnostic-core.h. Error if already
2468 included.
2469 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2470
2471 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2472
2473 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2474 Do not include expr.h
2475 (vector_mode_valid_p): Move here.
2476
2477 2010-06-21 DJ Delorie <dj@redhat.com>
2478
2479 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2480 allow these pragmas anywhere.
2481
2482 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2483
2484 PR bootstrap/44509
2485 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2486 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2487 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2488 ggc_strdup instead of xstrdup.
2489
2490 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2491
2492 * c-cppbuiltin.c: Include cpp-id-data.h.
2493 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2494 (lazy_hex_fp_value): New function.
2495 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2496
2497 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2498
2499 * c-gimplify.c: Do not include tree-flow.h
2500
2501 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2502
2503 PR other/44034
2504 * c-common.c: Rename targetm member:
2505 targetm.enum_va_list -> targetm.enum_va_list_p
2506
2507 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2508
2509 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2510
2511 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2512
2513 * c-cppbuiltin.c: Do not include except.h.
2514
2515 2010-06-24 Andi Kleen <ak@linux.intel.com>
2516
2517 * c-common.c (warn_for_omitted_condop): New.
2518 * c-common.h (warn_for_omitted_condop): Add prototype.
2519
2520 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2521
2522 * c.opt (lang-objc): Remove.
2523 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2524
2525 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2526
2527 * c-opts.c: Include "tm_p.h".
2528
2529 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2530
2531 * c-common.c (parse_optimize_options): Update call to
2532 decode_options.
2533
2534 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2535
2536 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2537 new type of types_used_by_cur_var_decl.
2538
2539 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2540
2541 PR bootstrap/44512
2542 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2543 for C++ standard compliance.
2544
2545 2010-06-16 Jason Merrill <jason@redhat.com>
2546
2547 * c.opt: Add -Wnoexcept.
2548
2549 2010-06-16 Richard Guenther <rguenther@suse.de>
2550
2551 PR c/44555
2552 * c-common.c (c_common_truthvalue_conversion): Remove
2553 premature and wrong optimization concering ADDR_EXPRs.
2554
2555 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2556
2557 * c-ada-spec.c (dump_sloc): Remove column info.
2558 (is_simple_enum): New function.
2559 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2560 enum types when relevant.
2561
2562 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2563
2564 * c-common.c (conversion_warning): Warn at expression
2565 location.
2566
2567 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2568
2569 * c-opts.c (c_common_handle_option): Don't handle
2570 OPT_fshow_column.
2571
2572 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2573
2574 * c-pragma.c (push_alignment): Use typed GC allocation.
2575 (handle_pragma_push_options): Likewise.
2576
2577 * c-common.c (parse_optimize_options): Likewise.
2578
2579 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2580 option.
2581
2582 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2583
2584 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2585 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2586 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2587 flag_signed_bitfields, warn_strict_null_sentinel,
2588 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2589 flag_gen_declaration, flag_no_gnu_keywords,
2590 flag_implement_inlines, flag_implicit_templates,
2591 flag_implicit_inline_templates, flag_optional_diags,
2592 flag_elide_constructors, flag_default_inline, flag_rtti,
2593 flag_conserve_space, flag_access_control, flag_check_new,
2594 flag_new_for_scope, flag_weak, flag_working_directory,
2595 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2596 flag_enforce_eh_specs, flag_threadsafe_statics,
2597 flag_pretty_templates): Remove.
2598 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2599 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2600 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2601 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2602 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2603 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2604 flag_no_gnu_keywords, flag_implement_inlines,
2605 flag_implicit_templates, flag_implicit_inline_templates,
2606 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2607 flag_rtti, flag_conserve_space, flag_access_control,
2608 flag_check_new, flag_new_for_scope, flag_weak,
2609 flag_working_directory, flag_use_cxa_atexit,
2610 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2611 flag_threadsafe_statics, flag_pretty_templates,
2612 warn_strict_null_sentinel): Remove.
2613 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2614 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2615 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2616 fimplicit-inline-templates, fimplicit-templates,
2617 flax-vector-conversions, fms-extensions, fnil-receivers,
2618 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2619 frtti, fshort-double, fshort-enums, fshort-wchar,
2620 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2621 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2622 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2623 gen-decls, undef): Use Var.
2624 (fdefault-inline, foptional-diags): Document as doing nothing.
2625 * c-opts.c (c_common_handle_option): Remove cases for options now
2626 using Var. Mark ignored options as such.
2627
2628 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2629
2630 * c-common.c: Moved to here from parent directory.
2631 * c-common.def: Likewise.
2632 * c-common.h: Likewise.
2633 * c-cppbuiltin.c: Likewise.
2634 * c-dump.c: Likewise.
2635 * c-format.c: Likewise.
2636 * c-format.h : Likewise.
2637 * c-gimplify.c: Likewise.
2638 * c-lex.c: Likewise.
2639 * c-omp.c: Likewise.
2640 * c.opt: Likewise.
2641 * c-opts.c: Likewise.
2642 * c-pch.c: Likewise.
2643 * c-ppoutput.c: Likewise.
2644 * c-pragma.c: Likewise.
2645 * c-pragma.h: Likewise.
2646 * c-pretty-print.c: Likewise.
2647 * c-pretty-print.h: Likewise.
2648 * c-semantics.c: Likewise.
2649 * stub-objc.c: Likewise.
2650
2651 * c-common.c: Include gt-c-family-c-common.h.
2652 * c-pragma.c: Include gt-c-family-c-pragma.h.
2653 \f
2654 Copyright (C) 2010-2013 Free Software Foundation, Inc.
2655
2656 Copying and distribution of this file, with or without modification,
2657 are permitted in any medium without royalty provided the copyright
2658 notice and this notice are preserved.