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