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